/* ==============================================================================
   INNOGEN AI INDUSTRIES — DEVELOPER PLATFORM STYLES
   Console, Model Registry, Studio Playground Dock, API Keys, Telemetry, Docs
   ============================================================================== */

.platform-layout {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
  width: 100%;
}

.platform-main {
  flex: 1;
  padding: var(--space-xl) var(--space-2xl) var(--space-3xl);
  overflow-y: auto;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.platform-header {
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ==============================================================================
   PLATFORM SUBNAV BAR (SLEEK TOP CAPSULE TABS)
   ============================================================================== */
.platform-subnav-container {
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(85, 230, 178, 0.12);
  padding-bottom: 12px;
}

.platform-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 230, 178, 0.3) rgba(0, 0, 0, 0.3);
  -webkit-overflow-scrolling: touch;
}

.platform-subnav::-webkit-scrollbar {
  height: 4px;
}

.platform-subnav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  margin: 0 4px;
}

.platform-subnav::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(85, 230, 178, 0.35), rgba(88, 184, 255, 0.25));
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-subnav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(85, 230, 178, 0.8), rgba(88, 184, 255, 0.7));
  box-shadow: 0 0 12px rgba(85, 230, 178, 0.5);
}

.subnav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(21, 26, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-mist);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.subnav-item:hover {
  background: rgba(85, 230, 178, 0.08);
  border-color: rgba(85, 230, 178, 0.3);
  color: var(--color-pearl);
  transform: translateY(-1px);
}

.subnav-item.active {
  background: linear-gradient(135deg, rgba(85, 230, 178, 0.15), rgba(88, 184, 255, 0.08));
  border-color: var(--color-jade);
  color: var(--color-jade);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(85, 230, 178, 0.15);
}

.subnav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.subnav-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.subnav-item:hover .subnav-icon svg {
  transform: scale(1.08);
}

.subnav-badge {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--color-jade);
  color: var(--color-obsidian);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-left: 2px;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background-color: var(--color-carbon);
  border: 1px solid var(--color-carbon-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(85, 230, 178, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-mist);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-pearl);
  font-family: var(--font-heading);
}

.stat-trend {
  font-size: 0.75rem;
  color: var(--color-jade);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* MODEL CATALOG GRID */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.model-card {
  background-color: var(--color-carbon);
  border: 1px solid var(--color-carbon-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.model-card:hover {
  border-color: rgba(85, 230, 178, 0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

.model-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.model-specs-list {
  list-style: none;
  font-size: 0.8125rem;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.model-specs-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.model-specs-list .spec-label {
  color: var(--color-mist);
}

.model-specs-list .spec-val {
  color: var(--color-pearl);
  font-family: var(--font-mono);
}

/* ==============================================================================
   PLAYGROUND WORKSPACE & DEVELOPER STUDIO WORKBENCH
   ============================================================================== */
.playground-workspace {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
}

/* Modern Segmented Navigation Tabs */
.playground-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.playground-mode-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #090d13;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.playground-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-mist);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.playground-mode-pill:hover {
  color: var(--color-pearl);
  background: rgba(255, 255, 255, 0.04);
}

.playground-mode-pill.active {
  background: linear-gradient(135deg, rgba(85, 230, 178, 0.16), rgba(88, 184, 255, 0.08));
  color: var(--color-jade);
  box-shadow: 0 2px 10px rgba(85, 230, 178, 0.15), inset 0 0 0 1px rgba(85, 230, 178, 0.35);
}

/* Main Interactive Workbench Canvas */
.playground-main-canvas {
  background: #080c11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 640px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.playground-session-header {
  padding: 12px 20px;
  background: #0d1218;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.engine-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-pearl);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.playground-output-area {
  flex: 1;
  padding: var(--space-xl);
  overflow-y: auto;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-pearl);
  min-height: 380px;
  max-height: calc(100vh - 360px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 230, 178, 0.3) rgba(0, 0, 0, 0.2);
}

.playground-output-area::-webkit-scrollbar {
  width: 6px;
}

.playground-output-area::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.playground-output-area::-webkit-scrollbar-thumb {
  background: rgba(85, 230, 178, 0.3);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.playground-output-area::-webkit-scrollbar-thumb:hover {
  background: rgba(85, 230, 178, 0.65);
  box-shadow: 0 0 10px rgba(85, 230, 178, 0.5);
}

.chat-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(85, 230, 178, 0.14), rgba(88, 184, 255, 0.08));
  border: 1px solid rgba(85, 230, 178, 0.3);
  border-radius: 14px 14px 2px 14px;
  padding: 14px 18px;
  max-width: 82%;
  color: #f0fdf4;
  font-size: 0.9375rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  animation: messageSlideIn 0.25s ease-out;
}

.chat-bubble-assistant {
  align-self: flex-start;
  background: #0d131b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px 14px 14px 2px;
  padding: 18px 22px;
  max-width: 94%;
  color: #f1f5f9;
  font-size: 0.9375rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: messageSlideIn 0.25s ease-out;
}

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

.chat-avatar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--color-jade);
}

.ai-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(85, 230, 178, 0.08);
  border: 1px solid rgba(85, 230, 178, 0.25);
  margin-bottom: 6px;
}

.ai-typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-jade);
  box-shadow: 0 0 6px var(--color-jade);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; }
  40% { transform: scale(1.2); opacity: 1; }
}

.stream-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: var(--color-jade);
  border-radius: 2px;
  vertical-align: text-bottom;
  margin-left: 4px;
  box-shadow: 0 0 10px rgba(85, 230, 178, 0.8), 0 0 18px rgba(85, 230, 178, 0.4);
  animation: cursorPulse 0.75s infinite alternate ease-in-out;
}

@keyframes cursorPulse {
  0% { opacity: 1; transform: scaleY(1); box-shadow: 0 0 12px rgba(85, 230, 178, 0.9); }
  100% { opacity: 0.2; transform: scaleY(0.85); box-shadow: 0 0 4px rgba(85, 230, 178, 0.2); }
}

.playground-input-composer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  background: #0a0e14;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-mist);
}

.composer-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.playground-prompt-textarea {
  flex: 1;
  background: #06090d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--color-pearl);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  resize: none;
  min-height: 58px;
  max-height: 160px;
  outline: none;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 230, 178, 0.28) rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.playground-prompt-textarea::-webkit-scrollbar {
  width: 5px;
}

.playground-prompt-textarea::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  margin: 4px 0;
}

.playground-prompt-textarea::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(85, 230, 178, 0.3), rgba(88, 184, 255, 0.22));
  border-radius: 999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.playground-prompt-textarea::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(85, 230, 178, 0.7), rgba(88, 184, 255, 0.6));
  box-shadow: 0 0 8px rgba(85, 230, 178, 0.45);
}

.playground-prompt-textarea:focus {
  border-color: var(--color-jade);
  box-shadow: 0 0 0 3px rgba(85, 230, 178, 0.15);
}

/* Right Inspector Sidebar */
.playground-studio-dock {
  background: linear-gradient(180deg, #0d1218 0%, #080c10 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
}

.studio-dock-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.studio-dock-section.hidden,
#dock-section-text.hidden,
#dock-section-image.hidden {
  display: none !important;
}

#dock-section-text,
#dock-section-image {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.studio-dock-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.studio-logo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-jade);
  box-shadow: 0 0 10px var(--color-jade);
  animation: pulseJade 2s infinite ease-in-out;
}

@keyframes pulseJade {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.studio-logo-text {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-pearl);
  font-family: var(--font-heading);
}

.studio-version-tag {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--color-jade);
  background: rgba(85, 230, 178, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(85, 230, 178, 0.25);
}

.studio-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--color-mist);
  font-family: var(--font-mono);
}

.studio-status-indicator {
  color: var(--color-jade);
  font-weight: 600;
}

.studio-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-mist-dark);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.studio-presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.studio-preset-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #0d1217;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--color-pearl);
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.studio-preset-chip:hover {
  background: rgba(85, 230, 178, 0.08);
  border-color: rgba(85, 230, 178, 0.3);
  color: var(--color-jade);
  transform: translateY(-1px);
}

.studio-tools-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.studio-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: #0d1217;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--color-mist);
  font-size: 0.6875rem;
  text-decoration: none;
  transition: all 0.18s ease;
}

.studio-tool-btn:hover {
  background: rgba(85, 230, 178, 0.08);
  border-color: rgba(85, 230, 178, 0.3);
  color: var(--color-pearl);
  transform: translateY(-1px);
}

.studio-telemetry-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.telemetry-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--color-mist);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-jade);
}

.telemetry-stats-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tele-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
}

.tele-lbl {
  color: var(--color-mist);
}

/* Slider Controls */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

input[type=range] {
  width: 100%;
  accent-color: var(--color-jade);
  cursor: pointer;
}


/* Polyglot Code Snippet Box */
.lang-selector-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: var(--space-md);
}

.lang-btn {
  background-color: #10151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-mist);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.lang-btn.active {
  background-color: var(--color-jade-subtle);
  border-color: var(--color-jade);
  color: var(--color-jade);
}

/* Responsive Platform */
@media (max-width: 1024px) {
  .platform-main {
    padding: var(--space-lg) var(--space-md);
  }

  .playground-workspace {
    grid-template-columns: 1fr;
  }

  .playground-studio-dock {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .playground-container {
    grid-template-columns: 1fr;
    height: auto;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .studio-presets-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================================
   INNOGEN VISIONFORGE — LIQUID LIGHT FIELD & CINEMATIC CANVASES
   ============================================================================== */
.image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  isolation: isolate;
  border-radius: 23px;
  background: #080c0d;
  border: 1px solid rgba(255, 255, 255, .075);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .5),
    inset 0 0 90px rgba(70, 255, 205, .025);
}

/* ================================
   FINAL IMAGE
================================ */
.image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.055);
  filter: blur(20px) saturate(.65) brightness(.8);
  transition:
    opacity 1.35s cubic-bezier(.16, 1, .3, 1),
    transform 1.8s cubic-bezier(.16, 1, .3, 1),
    filter 1.6s cubic-bezier(.16, 1, .3, 1);
}

.image.ready {
  opacity: 1;
  transform: scale(1);
  filter: blur(0) saturate(1.04) brightness(1);
}

/* ================================
   EMPTY / BEFORE GENERATION
================================ */
.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition:
    opacity .8s ease,
    transform 1s cubic-bezier(.16, 1, .3, 1);
}

.empty-state.hide {
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
}

/* ================================
   CENTRAL VISUAL
================================ */
.visual-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(130, 255, 225, .13),
    rgba(90, 220, 190, .045) 40%,
    transparent 72%
  );
  filter: blur(12px);
  animation: orbFloat 5s ease-in-out infinite;
}

.visual-orb::before,
.visual-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(150, 255, 230, .065);
  inset: 18px;
  animation: orbRotate 10s linear infinite;
}

.visual-orb::after {
  inset: 48px;
  opacity: .65;
  animation-direction: reverse;
  animation-duration: 7s;
}

@keyframes orbFloat {
  0%, 100% { transform: scale(.9); opacity: .5; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes orbRotate {
  to { transform: rotate(360deg); }
}

/* ================================
   CENTER CONTENT
================================ */
.empty-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 30px;
}

.empty-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(150, 255, 230, .13);
  background: rgba(255, 255, 255, .022);
  box-shadow: 0 0 50px rgba(90, 255, 210, .07);
  color: #71eac7;
  font-size: 23px;
  animation: markFloat 3.5s ease-in-out infinite;
}

@keyframes markFloat {
  0%, 100% { transform: scale(.96); opacity: .7; }
  50% { transform: scale(1.04); opacity: 1; }
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.35px;
  color: rgba(240, 255, 250, .88);
}

.empty-subtitle {
  max-width: 290px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(220, 245, 238, .4);
}

.empty-label {
  margin-top: 7px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: rgba(220, 255, 245, .25);
  font-family: var(--font-mono);
}

/* ================================
   FLOATING PARTICLES
================================ */
.particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(180, 255, 235, .42);
  box-shadow: 0 0 8px rgba(120, 255, 220, .35);
  animation: particleFloat 4.5s ease-in-out infinite;
}

.particles span:nth-child(1) { left: 14%; top: 30%; animation-delay: -1s; }
.particles span:nth-child(2) { left: 26%; top: 68%; animation-delay: -2.4s; }
.particles span:nth-child(3) { left: 73%; top: 25%; animation-delay: -.5s; }
.particles span:nth-child(4) { left: 82%; top: 67%; animation-delay: -3s; }
.particles span:nth-child(5) { left: 47%; top: 17%; animation-delay: -1.7s; }
.particles span:nth-child(6) { left: 62%; top: 78%; animation-delay: -2.8s; }
.particles span:nth-child(7) { left: 10%; top: 75%; animation-delay: -.8s; }
.particles span:nth-child(8) { left: 89%; top: 44%; animation-delay: -2s; }
.particles span:nth-child(9) { left: 38%; top: 45%; animation-delay: -3.2s; }
.particles span:nth-child(10) { left: 68%; top: 52%; animation-delay: -1.3s; }

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(10px) scale(.4);
    opacity: 0;
  }
  50% {
    transform: translateY(-17px) scale(1.2);
    opacity: .7;
  }
}

/* ================================
   AMBIENT BACKGROUND
================================ */
.empty-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% 40%, rgba(110, 255, 220, .065), transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(70, 230, 190, .035), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 15%, rgba(120, 255, 230, .025), transparent 70%);
}

/* ================================
   GENERATION STATE
================================ */
.generation {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: #080d0d;
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1);
}

.generation.active {
  opacity: 1;
  pointer-events: auto;
}

/* ================================
   BLURRED GENERATION PREVIEW
================================ */
.blur-preview {
  position: absolute;
  inset: -45px;
  width: calc(100% + 90px);
  height: calc(100% + 90px);
  object-fit: cover;
  opacity: .72;
  filter: blur(34px) brightness(.52) saturate(.6);
  transform: scale(1.1);
  animation: generationBreath 5s ease-in-out infinite;
}

@keyframes generationBreath {
  0%, 100% {
    transform: scale(1.1);
    filter: blur(34px) brightness(.52) saturate(.55);
  }
  50% {
    transform: scale(1.145);
    filter: blur(29px) brightness(.62) saturate(.68);
  }
}

/* ================================
   LIQUID LIGHT
================================ */
.liquid-light {
  position: absolute;
  width: 75%;
  height: 75%;
  left: 12.5%;
  top: 10%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 35% 35%, rgba(130, 255, 220, .09), transparent 35%),
    radial-gradient(ellipse at 70% 60%, rgba(80, 220, 190, .06), transparent 42%);
  filter: blur(30px);
  animation: liquidMove 6s ease-in-out infinite;
}

@keyframes liquidMove {
  0% { transform: translate(-4%, -2%) scale(.88); }
  25% { transform: translate(4%, 2%) scale(1.03); }
  50% { transform: translate(-2%, 5%) scale(1.1); }
  75% { transform: translate(5%, -3%) scale(.96); }
  100% { transform: translate(-4%, -2%) scale(.88); }
}

/* ================================
   LIGHT SWEEP
================================ */
.light-sweep {
  position: absolute;
  top: -30%;
  left: -65%;
  width: 40%;
  height: 160%;
  transform: rotate(12deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .15),
    transparent
  );
  filter: blur(14px);
  animation: lightMove 2.7s linear infinite;
}

@keyframes lightMove {
  0% { left: -65%; opacity: 0; }
  15% { opacity: .6; }
  50% { opacity: 1; }
  85% { opacity: .3; }
  100% { left: 130%; opacity: 0; }
}

/* ================================
   SOFT WAVE
================================ */
.wave {
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(130, 255, 225, .07),
    transparent 24%,
    rgba(255, 255, 255, .08),
    transparent 45%
  );
  filter: blur(32px);
  animation: waveRotate 7s linear infinite;
}

@keyframes waveRotate {
  to { transform: rotate(360deg); }
}

/* ================================
   GENERATION STATUS
================================ */
.status {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 20;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(5, 10, 10, .6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 10px;
  color: rgba(225, 250, 242, .5);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #65eac0;
  box-shadow: 0 0 10px rgba(100, 240, 200, .4);
  animation: statusPulse 1.4s ease-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: .45;
    transform: scale(.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.progress-track {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, .075);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    rgba(70, 210, 170, .35),
    #6df0c8
  );
  box-shadow: 0 0 14px rgba(90, 240, 200, .35);
  transition: width .25s ease;
}

.status-message {
  margin-top: 9px;
  font-size: 9px;
  color: rgba(225, 250, 242, .5);
  font-family: var(--font-mono);
}

/* ================================
   FINAL REVEAL
================================ */
.reveal {
  position: absolute;
  inset: -25%;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(240, 255, 250, .2),
    transparent 52%
  );
  transform: scale(.65);
  filter: blur(4px);
}

.revealing .reveal {
  animation: revealImage 1.35s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes revealImage {
  0% {
    opacity: .9;
    transform: scale(.65);
  }
  40% {
    opacity: .35;
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@media (max-width: 600px) {
  .image-box {
    border-radius: 18px;
  }
  .status {
    left: 13px;
    right: 13px;
    bottom: 13px;
  }
  .empty-title {
    font-size: 16px;
  }
}