/* LampMark Shared Styles */

:root {
  --lm-bg: #020203;
  --lm-text: #ffffff;
  --lm-text-soft: #bcbcc7;
  --lm-accent: #e7c96c;
  --lm-white: #f5f5f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, #181824 0%, #050508 40%, #020203 100%);
  color: var(--lm-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* WATERMARK */

@keyframes sigilPulse {
  0%, 100% {
    opacity: 0.065;
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.3));
  }
  50% {
    opacity: 0.095;
    filter: drop-shadow(0 0 80px rgba(255,255,255,0.5));
  }
}

@keyframes sigilGlow {
  0%, 100% {
    filter: drop-shadow(0 0 60px rgba(255,255,255,0.7));
  }
  50% {
    filter: drop-shadow(0 0 100px rgba(255,255,255,1));
  }
}

.sigil-watermark {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(75vw, 880px);
  height: min(75vw, 880px);
 background: url("../white-sigil.svg") no-repeat center/contain;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: sigilFadeIn 3s ease-out forwards, sigilPulse 8s ease-in-out 3s infinite;
}

@keyframes sigilFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.065;
  }
}

/* SHELL */

.shell {
  max-width: 960px;
  margin: 32px auto 48px;
  padding: 0 24px 72px;
  position: relative;
  z-index: 1;
}

/* NAV */

header.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
}

.lm-mark {
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 50; /* Ensure White sigil hover/flyout sits above the intake card */
}

/* REMOVED LM CIRCLE */
.lm-sigil-small {
  width: 15px;
  height: auto;
  filter: brightness(1.4) drop-shadow(0 12px 32px rgba(0,0,0,0.75));
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.lm-sigil-small:hover {
  width: 200px;
  opacity: 1;
  filter: brightness(1.5) drop-shadow(0 0 40px rgba(255,255,255,0.8)) drop-shadow(0 12px 32px rgba(0,0,0,0.75));
}

.lm-name {
  font-size: 1.2rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.nav-chip {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.52);
  color: var(--lm-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: radial-gradient(circle at top, rgba(255,255,255,0.10), transparent 70%);
}

/* HERO TEXT (NO HERO IMAGE NOW) */

.hero {
  margin-top: 40px;
  text-align: center;
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lm-text-soft);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.3rem, 4.8vw, 3.2rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 6px 0 16px;
}

.hero-title span.light {
  display: block;
  color: var(--lm-white);
}

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lm-text-soft);
  margin-bottom: 20px;
}

.hero-body {
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--lm-text-soft);
}

.hero-body b {
  color: var(--lm-text);
}

.hero-tagline {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* EARLY ACCESS */

.early-access {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
  width: 100%;
  align-items: center;
}

.access-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--lm-text);
  font-size: 0.95rem;
  font-family: "Inter", system-ui, sans-serif;
  transition: all 0.3s ease;
}

.access-input::placeholder {
  color: var(--lm-text-soft);
  opacity: 0.6;
}

.access-input:focus {
  outline: none;
  border-color: var(--lm-white);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.access-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: var(--lm-white);
  font-size: 0.9rem;
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.access-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
  border-color: var(--lm-white);
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.access-btn:active {
  transform: translateY(0);
}

.turnstile-container,
.cf-turnstile {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px auto 6px;
}

.trust-note {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--lm-text-soft);
  opacity: 0.65;
  text-align: center;
  letter-spacing: 0.3px;
}

.media-link {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lm-text-soft);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.media-link:hover {
  color: var(--lm-white);
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* MODAL */

.sigil-modal {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease, background 1.2s ease;
}

.sigil-modal.active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.95);
  pointer-events: auto;
}

.sigil-modal img {
  max-width: 90vw;
  max-height: 90vh;
  opacity: 0;
  animation: sigilGlow 8s ease-in-out infinite;
  transition: opacity 1.5s ease 0.3s;
}

.sigil-modal.active img {
  opacity: 1;
}

/* TOAST NOTIFICATION */

.toast {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 6px auto 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--lm-text);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
  margin-top: 60px;
  font-size: 0.78rem;
  color: var(--lm-text-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.social-links a {
  color: var(--lm-text-soft);
  opacity: 0.7;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.social-links a:hover {
  color: var(--lm-accent);
  opacity: 1;
  transform: translateY(-2px);
}

/* White Onboarding Shell */

.white-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.white-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.white-step-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  text-align: center;
}

.white-main {
  display: flex;
  justify-content: center;
}

.white-panel {
  width: 100%;
  max-width: 720px;
  background: rgba(0,0,0,0.4);
  border-radius: 18px;
  padding: 28px 24px 32px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
}

.white-title {
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.white-intro {
  margin: 0 0 12px;
  opacity: 0.9;
}

.white-steps {
  margin: 0 0 20px 18px;
  padding: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Dropzone */

.white-dropzone {
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.32);
  padding: 18px;
  background: rgba(0,0,0,0.35);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}

.white-dropzone.drag-over {
  border-color: #ffffff;
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

.white-dropzone-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.white-dropzone-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.white-dropzone-text {
  font-size: 14px;
}

.white-dropzone-sub {
  font-size: 12px;
  opacity: 0.7;
}

.white-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Preview + Reorder */

.white-preview {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.white-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: grab;
}

.white-thumb.dragging {
  opacity: 0.7;
  border-style: dashed;
}

.white-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.white-thumb-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.6);
}

.white-thumb-index {
  font-weight: 600;
  margin-right: 4px;
}

.white-thumb-remove {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* Buttons / hints */

.white-hint {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.8;
}

.white-primary-btn {
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #ffffff;
  color: #000;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.white-primary-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.white-primary-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.white-privacy {
  margin-top: 12px;
  font-size: 11px;
  opacity: 0.7;
}

/* White Step 1 Photo Upload - Apple-clean styling */

.white-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.white-dropzone.is-dragover {
  background: rgba(231, 201, 108, 0.1);
  border-color: var(--lm-accent);
  border-style: solid;
  box-shadow: 0 0 20px rgba(231, 201, 108, 0.2);
}

.white-dropzone-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
  color: var(--lm-text);
}

.white-file-input {
  display: none;
}

/* Photo Controls */

.white-photo-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.white-camera-btn,
.white-browse-btn {
  flex: 1;
  min-width: 160px;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--lm-text);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.white-camera-btn:hover,
.white-browse-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.white-camera-btn:active,
.white-browse-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .white-photo-controls {
    flex-direction: column;
  }
  
  .white-camera-btn,
  .white-browse-btn {
    width: 100%;
    min-width: unset;
  }
}

/* Camera Modal */

.white-camera-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.white-camera-modal.is-hidden {
  display: none;
}

.white-camera-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.white-camera-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #000;
  max-height: 70vh;
  object-fit: contain;
}

.white-camera-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.white-camera-capture-btn,
.white-camera-close-btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.white-camera-capture-btn {
  background: var(--lm-accent);
  color: #000;
  flex: 1;
  min-width: 160px;
}

.white-camera-capture-btn:hover {
  background: #f5d982;
  transform: scale(1.02);
}

.white-camera-capture-btn:active {
  transform: scale(0.98);
}

.white-camera-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lm-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.white-camera-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.white-camera-counter {
  text-align: center;
  color: var(--lm-text-soft);
  font-size: 0.9rem;
}

.white-camera-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  max-height: 120px;
  overflow-y: auto;
}

.white-camera-thumb-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.white-camera-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.white-camera-thumb-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: 2px solid white;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.white-camera-thumb-remove:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1);
}

.photo-remove-button {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.photo-remove-button:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

.photo-remove-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Photo Guidelines */

.photo-guidelines {
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.85rem;
}

.photo-guidelines h3,
.photo-guidelines-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--lm-text);
  opacity: 0.95;
}

.photo-guidelines p {
  margin: 0.65rem 0 0.25rem 0;
  font-size: 0.85rem;
  color: var(--lm-text-soft);
  line-height: 1.5;
}

.photo-guidelines p:first-of-type {
  margin-top: 0;
}

.photo-guidelines ul {
  margin: 0.25rem 0 0.65rem 1.25rem;
  padding: 0;
  list-style-type: disc;
}

.photo-guidelines li {
  margin: 0.2rem 0;
  color: var(--lm-text-soft);
  line-height: 1.45;
  opacity: 0.9;
}

.photo-guidelines ul:last-child {
  margin-bottom: 0;
}

/* Photo Queue Table */

.photo-queue {
  margin-top: 2rem;
}

.photo-queue-heading {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--lm-text);
}

.photo-queue-subtitle {
  font-size: 0.75rem;
  margin: 0 0 1rem 0;
  color: var(--lm-text-soft);
  opacity: 0.8;
}

.photo-table-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.02);
}

.photo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.photo-table thead {
  background: rgba(255, 255, 255, 0.04);
}

.photo-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 500;
  color: var(--lm-text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--lm-text);
}

.photo-table td:last-child {
  padding-right: 0.5rem;
  padding-left: 0.25rem;
  width: 40px;
}

@media (max-width: 640px) {
  .photo-table {
    font-size: 0.8rem;
  }
  
  .photo-table th,
  .photo-table td {
    padding: 0.4rem 0.5rem;
  }
  
  .photo-table td:last-child {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  
  .photo-thumb {
    width: 40px;
    height: 40px;
  }
}

.photo-table tbody tr:last-child td {
  border-bottom: none;
}

.photo-table-empty {
  padding: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--lm-text-soft);
  opacity: 0.6;
}

.photo-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.photo-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.photo-status-ready {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.photo-status-uploading {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.photo-status-uploaded {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.photo-status-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* White Step 2 Overlay */

.white-step-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100; /* Sits above intake card and sigil */
}

.white-step-overlay.is-hidden {
  display: none;
}

.white-step-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.white-step-overlay-tile {
  position: relative;
  max-width: 720px;
  width: 100%;
  margin: 1.5rem;
  border-radius: 18px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  overflow: auto;
  max-height: 90vh;
}

.white-step2-back-button {
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.white-step2-back-button:hover {
  color: #f3f4f6;
  text-decoration: underline;
}

.white-step2-form {
  margin-top: 1.5rem;
}

.white-form-group {
  margin-bottom: 1rem;
}

.white-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--lm-text-soft);
}

.white-form-group input {
  width: 100%;
  max-width: 400px;
  padding: 0.625rem 0.75rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.white-form-group input:focus {
  outline: none;
  border-color: rgba(231, 201, 108, 0.4);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
}

.white-form-group input::placeholder {
  color: var(--lm-text-soft);
  opacity: 0.5;
}

/* White Step 2 Photo Strip */

.white-step2-photos {
  margin-bottom: 1rem;
}

.white-step2-photos-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
  margin: 0 0 0.5rem 0;
}

.white-step2-photo-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.white-step2-photo-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.white-step2-photo-thumb:hover {
  border-color: rgba(148, 163, 184, 0.9);
}

.white-step2-photo-strip-empty {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}

/* --- White Step 2: Extraction Debug Panel --- */
.white-step2-debug {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.white-step2-debug-toggle {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.25rem;
}

.white-step2-debug-toggle:hover {
  color: #b5bdc8;
}

.white-step2-debug-chevron {
  font-size: 0.75rem;
  opacity: 0.75;
}

.white-step2-debug-body {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.35rem;
}

.white-step2-debug-body.is-collapsed {
  display: none;
}

.white-step2-debug-line {
  margin: 0.1rem 0;
}

.white-step2-debug-note {
  margin-top: 0.4rem;
  color: #e5e7eb;
  font-style: italic;
}

/* --- Error Banners --- */
.white-error-banner {
  display: none;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 4px;
  color: #fca5a5;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Success Banners --- */
.white-success-banner {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
}

.white-success-banner.is-hidden {
  display: none;
}

.white-success-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.white-success-left {
  flex: 1;
  min-width: 0;
}

.white-success-text {
  color: #86efac;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Courier New', monospace;
  margin-bottom: 0.5rem;
}

.white-success-url-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#white-step1-qr-canvas {
  display: block;
  background: white;
  padding: 2px;
  border-radius: 2px;
}

.white-url-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.white-success-url {
  color: #86efac;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.white-copy-url-btn {
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 4px;
  color: #86efac;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.white-copy-url-btn:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.6);
}

.white-copy-url-btn:active {
  transform: scale(0.98);
}

#white-print-slug {
  display: none;
}

.white-success-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.white-review-button {
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 4px;
  color: #86efac;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.white-review-button:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.6);
}

.white-add-another-button {
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 4px;
  color: #86efac;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.white-add-another-button:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.6);
}

.white-nerd-toggle {
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 3px;
  color: #86efac;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}

.white-nerd-toggle:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
}

.white-success-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.white-success-action-btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  cursor: pointer;
  transition: all 0.2s;
}

.white-success-action-btn:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.6);
}

.white-queue-pill {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.white-queue-pill.is-hidden {
  display: none;
}

.white-nerd-body {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 4px;
}

.white-nerd-body.is-collapsed {
  display: none;
}

.white-nerd-json {
  margin: 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 3px;
  color: #86efac;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  overflow-x: auto;
}

/* --- Print Styles --- */
@media print {
  /* Hide everything by default */
  body * {
    visibility: hidden !important;
  }

  /* Show only the print wrapper and its contents */
  #white-print-wrapper,
  #white-print-wrapper * {
    visibility: visible !important;
  }

  /* Position wrapper at absolute top-left */
  #white-print-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
  }

  /* Force QR to exactly 10mm × 10mm */
  #white-print-qr-box {
    width: 10mm;
    height: 10mm;
    margin: 0;
    padding: 0;
    background: white;
  }

  /* Canvas fills the 10mm box */
  #white-step1-qr-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    margin: 0;
    padding: 0;
  }

  /* Hide screen URL in print */
  #white-step1-url {
    display: none !important;
  }

  /* Slug centered below QR */
  #white-print-slug {
    display: block !important;
    visibility: visible !important;
    text-align: center;
    font-size: 3mm;
    margin-top: 2mm;
  }

  /* Hide all other elements */
  .white-success-text,
  .white-success-actions,
  .white-review-button,
  .white-nerd-toggle,
  .white-nerd-body {
    display: none !important;
  }
}

