/**
 * Member Onboarding & Interactive Card Studio Styles — In The Cards (nthecards.com)
 * High-contrast architectural contours, 12-layer 3D gold extrusion slices,
 * specular reflection, and uniform Profiles Stream Card architecture.
 */

@import url("/css/hero-profiles-stream.css?v=5.6");

.member-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.member-modal-chassis {
  background: #ffffff;
  border: 2px solid #090d16;
  border-radius: 28px;
  box-shadow: 0 28px 72px rgba(9, 13, 22, 0.35), 0 8px 24px rgba(9, 13, 22, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease, max-width 0.3s ease;
}

.member-modal-backdrop.is-open .member-modal-chassis {
  transform: translateY(0) scale(1);
}

/* Width based on layout */
.member-modal-chassis.auth-layout {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
}

.member-modal-chassis.studio-layout {
  width: 100%;
  max-width: 1080px;
  height: 92vh;
  max-height: 840px;
}

/* Header */
.member-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 2px solid #090d16;
  background: #fdfefe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.member-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: #090d16;
  color: #d4af37;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-brand-badge svg {
  width: 13px;
  height: 13px;
}

.member-header-brand {
  max-width: calc(100% - 48px);
}

.member-header-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #090d16;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.25;
}

.member-header-sub {
  font-size: 0.86rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.member-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #090d16;
  background: #ffffff;
  color: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.member-close-btn:hover {
  background: #090d16;
  color: #ffffff;
  transform: scale(1.05);
}

.member-close-btn svg {
  width: 16px;
  height: 16px;
}

/* Modal Body */
.member-modal-body {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   PHASE 1: AUTHENTICATION STYLES
   ========================================================================== */
.member-auth-container {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-segment-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
}

.auth-segment-btn {
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-segment-btn.active {
  background: #090d16;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(9, 13, 22, 0.12);
}

.member-google-auth-btn {
  width: 100%;
  padding: 0.8rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid #090d16;
  background: #ffffff;
  color: #090d16;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(9, 13, 22, 0.05);
}

.member-google-auth-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9, 13, 22, 0.1);
}

.member-divider {
  text-align: center;
  position: relative;
  margin: 0.25rem 0;
}

.member-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e2e8f0;
}

.member-divider span {
  position: relative;
  background: #ffffff;
  padding: 0 0.85rem;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.member-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.member-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.member-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #090d16;
}

.member-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #090d16;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.member-input:focus {
  border-color: #090d16;
  box-shadow: 0 0 0 3px rgba(9, 13, 22, 0.08);
}

.member-auth-error {
  padding: 0.65rem 0.9rem;
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  border-radius: 12px;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.member-auth-success {
  padding: 0.65rem 0.9rem;
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  border-radius: 12px;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.member-forgot-pwd-btn {
  background: none;
  border: none;
  padding: 0;
  color: #4361ee;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.member-forgot-pwd-btn:hover {
  color: #1e3a8a;
}

.member-primary-btn {
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid #090d16;
  background: #090d16;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(9, 13, 22, 0.2);
}

.member-primary-btn:hover {
  background: #d4af37;
  color: #090d16;
  border-color: #090d16;
  transform: translateY(-1px);
}

/* ==========================================================================
   PHASE 2: VERIFICATION STYLES
   ========================================================================== */
.member-verify-container {
  padding: 3rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.verify-icon-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #090d16;
  color: #d4af37;
  border: 2px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.verify-icon-orb svg {
  width: 32px;
  height: 32px;
}

.verify-headline {
  font-size: 1.35rem;
  font-weight: 800;
  color: #090d16;
}

.verify-instruction {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
}

.verify-action-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1rem;
}

.member-bypass-btn {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  max-height: 52px;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  border: 2px solid #090d16;
  background: #090d16;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(9, 13, 22, 0.15);
}

.member-bypass-btn svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
}

.member-bypass-btn:hover {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  transform: translateY(-1px);
}

.member-secondary-btn {
  width: 100%;
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.member-secondary-btn:hover {
  border-color: #090d16;
  color: #090d16;
}

.verify-note {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 0.5rem;
}

/* ==========================================================================
   PHASE 3: INTERACTIVE CARD STUDIO STYLES
   ========================================================================== */
.studio-split-viewport {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: 100%;
  overflow: hidden;
}

/* LEFT: CARD STAGE */
.studio-card-stage {
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.studio-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.studio-canvas-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

/* Uniform Profiles Stream Card Preview Styling */
.studio-preview-chassis {
  cursor: default !important;
  margin: 0 auto;
}

.studio-preview-chassis:hover {
  transform: translateY(-2px) !important;
}

.studio-preview-chassis .stream-card-action-row {
  pointer-events: none;
}

@media (max-height: 740px) {
  .studio-preview-chassis {
    transform: scale(0.88);
    transform-origin: center center;
  }
  .studio-preview-chassis:hover {
    transform: scale(0.88) translateY(-2px) !important;
  }
}

/* Blank Placeholder inside Stream Card Photo Layer */
.studio-blank-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #182234 0%, #090d16 100%);
  color: #94a3b8;
  padding: 2rem;
  text-align: center;
}

.blank-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px dashed #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  margin-bottom: 0.85rem;
  animation: pulseGold 2s infinite ease-in-out;
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

.blank-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.blank-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.blank-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* RIGHT: CONTROLS STAGE */
.studio-controls-stage {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

.studio-steps-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
  overflow-x: auto;
  flex-shrink: 0;
}

.studio-step-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.studio-step-btn.active {
  background: #090d16;
  color: #ffffff;
  border-color: #090d16;
}

.studio-form-content {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.studio-step-panel {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.studio-step-panel.active {
  display: flex;
}

.step-panel-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #090d16;
}

.step-panel-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: -0.85rem;
  margin-bottom: 0.25rem;
}

/* Dropzone */
.studio-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-dropzone:hover {
  border-color: #090d16;
  background: #f1f5f9;
}

.studio-dropzone.has-photo {
  border: 2px solid #10b981;
  background: #f0fdf4;
}

.studio-dropzone.has-photo .dropzone-text {
  color: #047857;
}

.studio-dropzone.has-photo svg {
  color: #10b981;
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
}

.dropzone-inner svg {
  width: 36px;
  height: 36px;
  color: #090d16;
}

.dropzone-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #090d16;
}

.dropzone-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.studio-url-alt {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Studio Form Fields */
.studio-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.studio-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.studio-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #090d16;
}

.studio-input,
.studio-select,
.studio-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #090d16;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.studio-input:focus,
.studio-select:focus,
.studio-textarea:focus {
  border-color: #090d16;
  box-shadow: 0 0 0 3px rgba(9, 13, 22, 0.08);
}

.studio-textarea {
  min-height: 90px;
  resize: vertical;
}

/* Theme Picker Grid */
.studio-theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.studio-theme-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.studio-theme-card:hover {
  border-color: #090d16;
  transform: translateY(-1px);
}

.studio-theme-card.active {
  border-color: #090d16;
  background: #090d16;
  color: #ffffff;
}

.studio-theme-card.active .studio-theme-name {
  color: #ffffff;
}

.studio-theme-card.active .studio-theme-vibe {
  color: #94a3b8;
}

.studio-theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.studio-theme-text {
  display: flex;
  flex-direction: column;
}

.studio-theme-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #090d16;
}

.studio-theme-vibe {
  font-size: 0.7rem;
  color: #64748b;
}

/* Studio Footer Actions */
.studio-footer-actions {
  padding: 1.25rem 2rem;
  border-top: 1.5px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.studio-prev-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-prev-btn:hover {
  border-color: #090d16;
  color: #090d16;
}

.studio-next-btn {
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid #090d16;
  background: #090d16;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-next-btn:hover {
  background: #d4af37;
  color: #090d16;
  border-color: #090d16;
}

.studio-publish-btn {
  padding: 0.85rem 2.25rem;
  border-radius: 9999px;
  border: 2px solid #090d16;
  background: #090d16;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(9, 13, 22, 0.25);
}

.studio-publish-btn:hover {
  background: #d4af37;
  color: #090d16;
  border-color: #090d16;
  transform: translateY(-2px);
}

.publishing-shimmer {
  animation: cardShimmer 0.6s ease-in-out;
}

@keyframes cardShimmer {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.05); }
  100% { transform: rotateY(360deg) scale(1); }
}

@media (max-width: 900px) {
  .member-modal-chassis.studio-layout {
    height: 96vh;
    max-height: 96vh;
  }

  .studio-split-viewport {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .studio-card-stage {
    padding: 1.25rem;
  }

  .studio-preview-chassis {
    transform: scale(0.85);
    transform-origin: center center;
    margin: 0 auto;
  }
}

/* Dual Height Dropdown Layout */
.studio-height-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.studio-field-hint {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.4;
  display: block;
}

.studio-badge-hint {
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.studio-badge-subtle {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

/* ==========================================================================
   PAGE-MODE CONTAINER (FOR /join AND /onboarding STANDALONE FULL-SCREEN PAGE)
   ========================================================================== */
.member-page-wrapper {
  min-height: 100vh;
  background: #090d16;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-sizing: border-box;
}

.member-page-chassis {
  background: #ffffff;
  border: 2px solid #090d16;
  border-radius: 28px;
  box-shadow: 0 28px 72px rgba(9, 13, 22, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  min-height: calc(100vh - 3rem);
}

.member-page-chassis.auth-layout {
  max-width: 540px;
  min-height: auto;
  margin: auto;
}

.member-page-header {
  padding: 1.25rem 2rem;
  border-bottom: 2px solid #090d16;
  background: #fdfefe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 1.5rem;
}

.member-page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  border: 1.5px solid #090d16;
  background: #ffffff;
  color: #090d16;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.member-page-back-link:hover {
  background: #090d16;
  color: #ffffff;
  transform: translateY(-1px);
}

.member-page-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}

.member-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

@media (max-width: 900px) {
  .member-page-wrapper {
    padding: 0.5rem;
  }

  .member-page-chassis {
    border-radius: 20px;
    min-height: calc(100vh - 1rem);
  }

  .member-page-header {
    padding: 1rem;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   AI PHOTO REVIEWER & MODERATION STYLES
   ========================================================================== */

.step-panel-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ai-shield-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  color: #059669;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.ai-shield-icon {
  font-size: 0.8rem;
  color: #10b981;
}

/* URL Input with Action Button */
.studio-url-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}

.studio-url-submit-btn {
  padding: 0.55rem 0.95rem;
  border-radius: 9999px;
  background: #090d16;
  color: #ffffff;
  border: 1.5px solid #090d16;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.studio-url-submit-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* Quick AI Safety Test Presets Row */
.ai-test-chips-row {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-chips-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.ai-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ai-test-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid;
  transition: all 0.2s ease;
  background: #ffffff;
}

.ai-test-chip.pass {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.ai-test-chip.pass:hover {
  background: #d1fae5;
  border-color: #059669;
  transform: translateY(-1px);
}

.ai-test-chip.reject {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.ai-test-chip.reject:hover {
  background: #fee2e2;
  border-color: #dc2626;
  transform: translateY(-1px);
}

/* Live AI Moderation Status HUD */
.ai-moderation-status {
  margin-top: 0.85rem;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.ai-moderation-status.is-scanning {
  background: #090d16;
  color: #f8fafc;
  padding: 0.95rem 1.15rem;
  border: 1.5px solid #1e293b;
  box-shadow: 0 4px 18px rgba(9, 13, 22, 0.15);
}

.ai-hud-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.ai-hud-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: aiHudPulse 1s infinite alternate;
}

@keyframes aiHudPulse {
  from { transform: scale(0.85); opacity: 0.6; }
  to { transform: scale(1.2); opacity: 1; }
}

.ai-hud-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 1;
}

.ai-hud-percent {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  color: #10b981;
}

.ai-hud-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.ai-hud-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: 9999px;
  transition: width 0.2s ease;
}

.ai-hud-message {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.ai-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-check-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #cbd5e1;
}

.ai-check-icon.pass {
  color: #10b981;
  font-weight: 800;
}

/* AI Approved Card */
.ai-approved-card {
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
  animation: aiCardFadeIn 0.25s ease forwards;
}

.ai-approved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ai-approved-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 800;
}

.ai-approved-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
}

.ai-confidence-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.ai-approved-desc {
  font-size: 0.74rem;
  color: #065f46;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.ai-audit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ai-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #047857;
  background: #ffffff;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

/* AI Rejected Card */
.ai-rejected-card {
  background: #fff1f2;
  border: 2px solid #e11d48;
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.15);
  animation: aiCardFadeIn 0.25s ease forwards;
}

.ai-rejected-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.ai-rejected-icon-wrap {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.ai-rejected-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #9f1239;
}

.ai-rejected-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: #be123c;
}

.ai-rejected-reasons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.5rem 0 0.75rem;
}

.ai-reason-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #881337;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #fecdd3;
}

.ai-guidelines-hint {
  font-size: 0.73rem;
  color: #9f1239;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.ai-btn-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  background: #e11d48;
  color: #ffffff;
  border: 1.5px solid #be123c;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-btn-retry:hover {
  background: #be123c;
  transform: translateY(-1px);
}

/* Card Preview AI Laser Scanner Animation */
.stream-photo-layer.is-ai-scanning::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #10b981;
  box-shadow: 0 0 14px 4px rgba(16, 185, 129, 0.85);
  animation: aiLaserScan 1.2s infinite ease-in-out alternate;
  z-index: 10;
  pointer-events: none;
}

@keyframes aiLaserScan {
  0% { top: 0%; opacity: 0.4; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0.4; }
}

/* AI Safe Shield Badge on Live 3D Card */
.ai-card-verified-shield {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.25px solid rgba(16, 185, 129, 0.6);
  border-radius: 9999px;
  padding: 0.25rem 0.55rem;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  animation: aiCardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shield-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

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

