/* ═══════════ MARTISSA FULLSCREEN REGISTRATION ═══════════ */

.mr-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(160deg, #060610 0%, #0a1228 40%, #0d1a30 70%, #080e1c 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.mr-overlay.open { opacity: 1; pointer-events: auto; }

.mr-container {
  width: 92%; max-width: 520px;
  padding: 40px 32px;
  position: relative;
  animation: mrSlideUp 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes mrSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Close button ── */
.mr-close {
  position: fixed; top: 24px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.3); font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 210;
}
.mr-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ── Avatar mango ── */
.mr-avatar {
  width: 56px; height: 56px; margin: 0 auto 28px;
  background: radial-gradient(circle at 40% 35%, #FFB347, #F2A900, #E8751A);
  border-radius: 50%; position: relative;
  box-shadow: 0 0 40px rgba(242,169,0,0.15);
}
.mr-avatar::before {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 10px; background: #8B6914; border-radius: 2px;
}
.mr-avatar::after {
  content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-30%) rotate(-15deg);
  width: 12px; height: 8px; background: #4ade80; border-radius: 50% 50% 50% 0;
}
.mr-eyes {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 10px;
}
.mr-eye {
  width: 7px; height: 8px; background: #1a1a2e; border-radius: 50%;
}
.mr-mouth {
  position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%);
  width: 12px; height: 6px; border-bottom: 2px solid #1a1a2e; border-radius: 0 0 50% 50%;
}

/* ── Message area ── */
.mr-message-area {
  min-height: 70px; margin-bottom: 32px; text-align: center;
}
.mr-message {
  font-size: 20px; line-height: 1.5; color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 400;
  margin: 0;
}
.mr-message .mr-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: #F2A900; margin-left: 2px;
  animation: mrBlink 0.8s infinite;
  vertical-align: text-bottom;
}
@keyframes mrBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Input area ── */
.mr-input-area {
  position: relative; margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.mr-input {
  flex: 1; padding: 16px 4px;
  background: transparent;
  border: none; border-bottom: 2px solid rgba(242,169,0,0.3);
  color: #fff; font-size: 20px; font-family: 'Outfit', sans-serif;
  outline: none; transition: border-color 0.3s;
  text-align: center;
}
.mr-input:focus {
  border-bottom-color: #F2A900;
}
.mr-input::placeholder {
  color: rgba(255,255,255,0.15); font-size: 18px;
}

/* Date input special styling */
.mr-input[type="date"] {
  color-scheme: dark;
}
.mr-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) hue-rotate(10deg);
  cursor: pointer;
}

/* ── Voice button ── */
.mr-voice-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid rgba(242,169,0,0.25);
  background: rgba(242,169,0,0.08); color: #F2A900;
  font-size: 18px; cursor: pointer; transition: all 0.2s;
}
.mr-voice-btn:hover { background: rgba(242,169,0,0.15); }
.mr-voice-btn.active {
  background: rgba(242,169,0,0.2);
  border-color: #F2A900;
  box-shadow: 0 0 12px rgba(242,169,0,0.2);
}
.mr-voice-btn.listening {
  background: rgba(242,169,0,0.3);
  border-color: #F2A900;
  animation: mrPulse 1.2s infinite;
}
@keyframes mrPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,169,0,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(242,169,0,0); }
}

/* ── Error display ── */
.mr-error {
  color: #ef4444; font-size: 13px; text-align: center;
  margin-top: -16px; margin-bottom: 12px; min-height: 16px;
}

/* ── Navigation ── */
.mr-nav {
  display: flex; gap: 12px; justify-content: center;
}
.mr-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #F2A900, #E8751A);
  color: #fff; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: all 0.2s;
  min-width: 140px;
}
.mr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242,169,0,0.25);
}
.mr-btn:active { transform: translateY(0); }
.mr-btn:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none;
  box-shadow: none;
}

.mr-btn-back {
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4); min-width: auto; padding: 14px 20px;
}
.mr-btn-back:hover {
  border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6);
  transform: none; box-shadow: none;
}

/* ── Progress ── */
.mr-progress {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.03);
  z-index: 210;
}
.mr-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #F2A900, #E8751A);
  transition: width 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.mr-progress-text {
  position: fixed; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; color: rgba(255,255,255,0.2);
  font-family: 'Outfit', sans-serif; z-index: 210;
}

/* ── Emoji mood picker ── */
.mr-mood-picker {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 28px;
}
.mr-mood-btn {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,0.04); border: 2px solid rgba(255,255,255,0.06);
  font-size: 28px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.mr-mood-btn:hover {
  background: rgba(242,169,0,0.1); border-color: rgba(242,169,0,0.3);
  transform: scale(1.1);
}
.mr-mood-btn.selected {
  background: rgba(242,169,0,0.15); border-color: #F2A900;
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(242,169,0,0.2);
}

/* ── Success screen ── */
.mr-success {
  text-align: center; padding: 20px 0;
}
.mr-success-icon {
  font-size: 56px; margin-bottom: 16px;
}
.mr-success-title {
  font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.mr-success-text {
  font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6;
}

/* ── Email code input styling ── */
.mr-input.mr-code-input {
  letter-spacing: 12px; font-size: 28px; font-weight: 700;
  font-family: monospace; max-width: 220px; margin: 0 auto;
}

/* ── Resend code link ── */
.mr-resend {
  text-align: center; margin-top: 8px;
}
.mr-resend a {
  color: rgba(242,169,0,0.5); font-size: 12px; text-decoration: none;
  cursor: pointer; transition: color 0.2s;
}
.mr-resend a:hover { color: #F2A900; }

/* ── Loading spinner ── */
.mr-loading {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #F2A900; border-radius: 50%;
  animation: mrSpin 0.6s linear infinite;
  vertical-align: middle; margin-left: 8px;
}
@keyframes mrSpin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .mr-container { padding: 30px 20px; }
  .mr-message { font-size: 17px; }
  .mr-input { font-size: 18px; }
  .mr-btn { padding: 12px 24px; font-size: 15px; }
  .mr-close { top: 16px; right: 16px; }
}
