/* ─── Base ─────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
  font-family: 'Manrope', sans-serif;
  color: #f5f5f5;
}

/* ─── Screen System ─────────────────────────────────────────────────────────── */

.screen {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  background: #0a0a0a;
}

.screen.screen-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

.screen.screen-hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

#s3 {
  overflow-y: auto;
  overflow-x: hidden;
}

/* ─── S0: Homepage ─────────────────────────────────────────────────────────── */

#s0 {
  background: radial-gradient(ellipse 140% 80% at 50% 60%, #0f1d32 0%, #0a0a0a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wordmark {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5f5f5;
}

.logo-dot {
  color: #3b82f6;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2d2d3f;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 8px 40px rgba(59, 130, 246, 0.08);
}

#search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f5f5f5;
  font-size: 1.05rem;
  font-family: 'Manrope', sans-serif;
  padding: 18px 20px;
  caret-color: #3b82f6;
}

#search-input::placeholder {
  color: #4b5563;
}

#search-btn {
  margin: 6px;
  padding: 12px 28px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

#search-btn:hover {
  background: #2563eb;
}

#search-btn:active {
  transform: scale(0.97);
}

/* ─── S1: Loading / Chip Extraction ───────────────────────────────────────── */

#s1 {
  background: radial-gradient(ellipse 140% 80% at 50% 60%, #0f1d32 0%, #0a0a0a 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.s1-query-display {
  color: #6b7280;
  font-size: 0.95rem;
  font-style: italic;
  max-width: 560px;
  text-align: center;
  line-height: 1.6;
}

/* Skeleton Loader */
.skeleton-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 480px;
}

.skeleton-bar {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #1a1a2e 25%, #2d2d3f 50%, #1a1a2e 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-bar:nth-child(2) { width: 75%; }
.skeleton-bar:nth-child(3) { width: 90%; }
.skeleton-bar:nth-child(4) { width: 60%; }

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Chip Extraction */
.chips-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 560px;
}

.s1-label {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.extraction-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  opacity: 0;
  transform: scale(0.7) translateY(8px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.extraction-chip.chip-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.chip-location {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.chip-feature {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

.chip-filter-noise {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
  border-color: rgba(20, 184, 166, 0.3);
}

.chip-filter-air {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.chip-filter-school {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

/* ─── S2: Results ─────────────────────────────────────────────────────────── */

#s2 {
  display: flex;
  flex-direction: column;
}

.results-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid #1a1a2e;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  z-index: 5;
  flex-shrink: 0;
}

.results-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Property List */
.property-list {
  width: 40%;
  border-right: 1px solid #1a1a2e;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.property-list::-webkit-scrollbar { width: 4px; }
.property-list::-webkit-scrollbar-track { background: transparent; }
.property-list::-webkit-scrollbar-thumb { background: #2d2d3f; border-radius: 2px; }

.prop-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2d2d3f;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.prop-card:hover {
  border-color: #3b4a6b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.prop-card.golden-card {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.prop-card.golden-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.2);
}

.prop-card-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #1a1a2e;
}

.prop-card-thumb-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #1a1a2e, #0f1d32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #4b5563;
}

.prop-card-body {
  padding: 14px 16px;
}

.prop-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 2px;
}

.prop-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #3b82f6;
  margin-bottom: 4px;
}

.prop-card-meta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.prop-card-desc {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.5;
}

.prop-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3b82f6;
}

/* Map Area */
.map-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #0d1a2e;
}

.map-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.map-tint {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 28, 0.48);
  z-index: 1;
  pointer-events: none;
}


.map-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.map-center-glow {
  position: absolute;
  top: 40%;
  left: 42%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Map Pins */
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  z-index: 3;
}

.map-pin.pin-golden {
  cursor: pointer;
}

.pin-bubble {
  background: #3b82f6;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transition: transform 0.15s ease;
}

.map-pin.pin-golden .pin-bubble:hover {
  transform: scale(1.06);
}

.pin-bubble.pin-dimmed {
  background: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pin-tail {
  width: 2px;
  height: 8px;
  background: #3b82f6;
}

.pin-tail.pin-dimmed {
  background: #374151;
}

.pin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
}

.pin-dot.pin-dimmed {
  background: #374151;
}

/* Heatmap Overlays */
.heatmap-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

#heatmap-air {
  background: radial-gradient(ellipse 55% 50% at 42% 45%, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0.1) 50%, transparent 75%);
}

#heatmap-noise {
  background:
    radial-gradient(ellipse 40% 35% at 35% 30%, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.08) 55%, transparent 75%),
    radial-gradient(ellipse 30% 25% at 65% 60%, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 55%, transparent 75%);
}

/* Data Layers Button & Popover */
.layers-btn {
  position: absolute;
  bottom: 56px;
  right: 20px;
  z-index: 4;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid #2d2d3f;
  color: #d1d5db;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: border-color 0.15s ease, color 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.layers-btn:hover {
  border-color: #3b82f6;
  color: #f5f5f5;
}

.layers-popover {
  position: absolute;
  bottom: 106px;
  right: 20px;
  z-index: 5;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid #2d2d3f;
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 200px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: popover-appear 0.2s ease;
}

@keyframes popover-appear {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.layers-popover-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.layer-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
}

.layer-toggle-row + .layer-toggle-row {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.layer-label {
  font-size: 0.85rem;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Data Confidence Widget */
.data-confidence {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.confidence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ─── Toggle Switch ──────────────────────────────────────────────────────────*/

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: #374151;
  border-radius: 999px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.toggle-switch input:checked + .toggle-track {
  background: #3b82f6;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(18px);
}

/* ─── S3+S4: Listing Detail ──────────────────────────────────────────────── */

#s3 {
  background: #0a0a0a;
}

.listing-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 32px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a2e;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #6b7280;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Manrope', sans-serif;
  padding: 0;
  transition: color 0.15s ease;
}

.back-btn:hover { color: #d1d5db; }

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background: #0f1d32;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

#img-distorted {
  opacity: 1;
  transform: perspective(600px) scaleX(1.11) scaleY(0.98);
  transform-origin: center center;
}

#img-corrected {
  opacity: 0;
}

.lens-toggle-bar {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid #2d2d3f;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  z-index: 5;
}

.lens-toggle-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d1d5db;
  white-space: nowrap;
}

/* Listing Content */
.listing-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 32px 80px;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.listing-title {
  font-size: 2rem;
  font-weight: 800;
  color: #f5f5f5;
  letter-spacing: -0.02em;
}

.listing-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: #3b82f6;
  letter-spacing: -0.02em;
}

.listing-location {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Legal Badge */
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 28px;
}

.legal-badge-time {
  font-weight: 400;
  color: #6b7280;
  font-size: 0.75rem;
}

/* Property Details Grid */
.prop-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.prop-detail-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1e2030;
  border-radius: 10px;
  padding: 14px 16px;
}

.prop-detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.prop-detail-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e5e7eb;
}

/* Tags */
.prop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.prop-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2d2d3f;
  color: #9ca3af;
}

/* ─── S4: Investment Intelligence ────────────────────────────────────────── */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #2d2d3f 20%, #2d2d3f 80%, transparent);
  margin: 8px 0 40px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f5f5f5;
  letter-spacing: -0.02em;
}

.premium-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* SVG Chart */
.chart-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #1e2030;
  border-radius: 12px;
  padding: 20px 16px 12px;
  margin-bottom: 20px;
}

.chart-title {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.chart-svg {
  width: 100%;
  overflow: visible;
}

/* AI Negotiation Box */
.negotiation-box {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 36px;
}

.neg-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.neg-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}

.neg-text {
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.5;
}

/* CTA Block */
.cta-block {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 16px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-text-group {}

.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.cta-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f5f5f5;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.cta-subtext {
  font-size: 0.85rem;
  color: #6b7280;
}

.mortgage-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
}

.mortgage-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.45);
}

.mortgage-btn:active {
  transform: translateY(0);
}

/* ─── Modal: S5 Orchestration + S6 Success ───────────────────────────────── */

#modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease;
}

#modal.hidden {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: #111827;
  border: 1px solid #2d2d3f;
  border-radius: 20px;
  padding: 40px 48px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modal-slide-in 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f5f5f5;
  margin-bottom: 28px;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item.item-visible {
  opacity: 1;
  transform: translateX(0);
}

.checklist-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2d2d3f;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.checklist-item.item-done .checklist-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-size: 0.9rem;
}

.checklist-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.checklist-item.item-done .checklist-spinner {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.checkmark-icon {
  display: none;
}

.checklist-item.item-done .checkmark-icon {
  display: inline;
}

.checklist-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.checklist-item.item-done .checklist-text {
  color: #d1d5db;
}

/* S6: Success */
#modal-s6 {
  text-align: center;
}

.success-emoji {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
  animation: bounce-in 0.5s cubic-bezier(0.34, 1.8, 0.64, 1);
}

@keyframes bounce-in {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #f5f5f5;
  margin-bottom: 12px;
}

.success-progress {
  font-size: 2.2rem;
  font-weight: 800;
  color: #10b981;
  margin: 12px 0;
  letter-spacing: -0.03em;
}

.success-body {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 28px;
}

.success-body strong {
  color: #d1d5db;
  font-weight: 600;
}

.success-bank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.reset-btn {
  background: none;
  border: none;
  color: #4b5563;
  font-size: 0.82rem;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  padding: 8px;
  transition: color 0.15s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reset-btn:hover { color: #9ca3af; }

/* ─── Demo Tooltip ──────────────────────────────────────────────────────────*/

#demo-tooltip {
  position: fixed;
  background: rgba(31, 41, 55, 0.97);
  border: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

#demo-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Lens Correction Notification ─────────────────────────────────────────*/

#lens-notification {
  position: fixed;
  top: 80px;
  right: 24px;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 280px;
  z-index: 50;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

#lens-notification.visible {
  opacity: 1;
  transform: translateX(0);
}

.notif-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.notif-body {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* ─── Utility ────────────────────────────────────────────────────────────── */

.hidden { display: none !important; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
