/* ==========================================================================
   No Man's Sky Starship Fabricator & 3D Designer Stylesheet
   Modern Glassmorphism, Cybernetic Hologram Accents, High-FPS Layout
   ========================================================================== */

:root {
  --bg-space: #06090e;
  --bg-panel: rgba(13, 19, 29, 0.82);
  --bg-card: rgba(18, 26, 40, 0.72);
  --bg-card-hover: rgba(26, 38, 58, 0.85);

  --border-subtle: rgba(45, 68, 102, 0.45);
  --border-glow: rgba(0, 229, 255, 0.5);
  --border-active: #00e5ff;

  --neon-cyan: #00e5ff;
  --neon-amber: #ffb300;
  --neon-purple: #c048f8;
  --neon-crimson: #ff1744;
  --neon-emerald: #00e676;

  --text-main: #f0f4fc;
  --text-muted: #8899b3;
  --text-dim: #5c6c84;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-space);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   App Layout & Grid
   ========================================== */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at 50% 30%, #0d1624 0%, #06090e 80%);
}

/* ==========================================
   Header Bar
   ========================================== */
.app-header {
  height: 64px;
  background: rgba(8, 13, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 50;
  flex-shrink: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-crest {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(192, 72, 248, 0.2));
  border: 1px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--neon-amber);
}

.brand-main {
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}

/* 3-State Availability Mode Toggle */
.state-toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 20, 31, 0.85);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.state-toggle-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.state-toggle-pills {
  display: flex;
  gap: 4px;
}

.toggle-pill input[type="radio"] {
  display: none;
}

.toggle-pill .pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.toggle-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all 0.2s ease;
}

.toggle-pill input[type="radio"]:checked + .pill-btn {
  background: rgba(0, 229, 255, 0.12);
  color: var(--neon-cyan);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.toggle-pill input[type="radio"]:checked + .pill-btn .pill-dot {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

/* Header Right: Class Picker & Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.class-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.class-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.class-btn-group {
  display: flex;
  background: rgba(13, 20, 31, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.class-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.class-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.class-btn[data-class="C"].active { background: #78909c; color: #fff; }
.class-btn[data-class="B"].active { background: #1e88e5; color: #fff; }
.class-btn[data-class="A"].active { background: #8e24aa; color: #fff; }
.class-btn[data-class="S"].active {
  background: #ffb300;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.4);
}

.hud-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(22, 33, 51, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: rgba(30, 48, 77, 0.9);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

.hud-btn.primary {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 172, 193, 0.4));
  border-color: var(--neon-cyan);
  color: #fff;
}

/* ==========================================
   Studio Workspace Grid
   ========================================== */
.studio-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Left Sidebar (Configuration) */
.studio-sidebar {
  width: 350px;
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 30;
  flex-shrink: 0;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(45, 68, 102, 0.35);
}

.section-title h2 {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.title-icon {
  font-size: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label, .sub-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-select-wrap {
  position: relative;
}

.custom-select {
  width: 100%;
  background: rgba(14, 21, 33, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-select:focus, .custom-select:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.custom-select optgroup {
  background: #06090e;
  color: var(--neon-cyan);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 4px;
}

.custom-select option {
  background: #0e1521;
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
}

/* Ship Category Banner */
.ship-category-banner {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(14, 21, 33, 0.7);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.3s ease;
}

.ship-category-banner.fabricatable {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
}

.ship-category-banner.natural {
  border-color: rgba(255, 179, 0, 0.35);
  background: rgba(255, 179, 0, 0.06);
}

.ship-category-banner .badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ship-category-banner.fabricatable .badge-tag {
  color: var(--neon-cyan);
}

.ship-category-banner.natural .badge-tag {
  color: var(--neon-gold);
}

.ship-category-banner .badge-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Finish Selector Cards */
.finish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.finish-card {
  background: rgba(16, 24, 38, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.finish-card:hover:not(.locked) {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.finish-card.active {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.finish-card.locked {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.finish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.finish-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
}

.finish-desc {
  font-size: 9px;
  color: var(--text-dim);
  line-height: 1.25;
}

.tag-expedition {
  background: rgba(255, 179, 0, 0.2);
  color: var(--neon-amber);
  border: 1px solid rgba(255, 179, 0, 0.4);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* Color Swatches Grid */
.color-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.swatch-palette {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.color-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.color-swatch.active {
  border-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 0 2px rgba(0, 0, 0, 0.6);
}

.wild-dropdown {
  margin-top: 6px;
}

.dropdown-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.dropdown-header .badge {
  font-size: 9px;
  background: rgba(0, 229, 255, 0.15);
  color: var(--neon-cyan);
  padding: 2px 6px;
  border-radius: 3px;
}

.wild-grid {
  grid-template-columns: repeat(8, 1fr);
  max-height: 180px;
  overflow-y: auto;
  padding: 8px 0;
}

/* Parts Tree Controls */
.parts-tree {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.part-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.part-group.nested-group {
  background: rgba(10, 15, 24, 0.7);
  border-left: 2px solid var(--neon-cyan);
  margin-left: 8px;
}

.part-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  text-transform: uppercase;
}

.group-badge {
  font-size: 9px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
}

.part-options-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.part-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(14, 21, 33, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
}

.part-option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.part-option-btn.selected {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.part-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text-dim);
  background: transparent;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.part-option-btn.selected .part-indicator {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.part-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.part-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.part-id {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* ==========================================
   Center 3D Viewport
   ========================================== */
.viewport-panel {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
}

.three-canvas-container {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.three-canvas-container:active {
  cursor: grabbing;
}

/* Viewport HUD Overlays */
.viewport-hud-top {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 20;
}

.hud-pill-group {
  display: flex;
  gap: 6px;
  pointer-events: auto;
  background: rgba(9, 14, 23, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.hud-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hud-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hud-pill.active {
  background: rgba(0, 229, 255, 0.2);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

.viewport-hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 20px;
  display: flex;
  gap: 12px;
  pointer-events: none;
  background: rgba(9, 14, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  z-index: 20;
}

.control-hint {
  font-size: 11px;
  color: var(--text-dim);
}

.hint-key {
  color: var(--neon-cyan);
  font-weight: 700;
}

/* Loading Screen Overlay */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-overlay.active {
  display: flex;
}

.loading-box {
  background: rgba(14, 22, 35, 0.95);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  text-align: center;
}

.orbit-spinner {
  width: 50px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--neon-cyan);
  border-right-color: var(--neon-purple);
  animation: spin 1s linear infinite;
}

.orbit-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-amber);
  box-shadow: 0 0 10px var(--neon-amber);
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.loading-tag {
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--neon-amber);
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transition: width 0.3s ease;
}

/* ==========================================
   Right Output Drawer (DNA & Supercharged Grid)
   ========================================== */
.studio-output-drawer {
  width: 380px;
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 30;
  flex-shrink: 0;
}

.drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.text-link-btn {
  background: transparent;
  border: none;
  color: var(--neon-amber);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease;
}

.text-link-btn:hover {
  color: #fff;
  text-decoration: underline;
}

.count-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(192, 72, 248, 0.2);
  color: var(--neon-purple);
  border: 1px solid rgba(192, 72, 248, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
}

/* Seed Input Bar */
.seed-input-wrap {
  display: flex;
  gap: 6px;
}

.seed-input {
  flex: 1;
  background: rgba(8, 12, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  letter-spacing: 0.05em;
  outline: none;
  transition: all 0.2s ease;
}

.seed-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
  background: rgba(12, 18, 29, 0.95);
}

.seed-realtime-hint {
  font-size: 10.5px;
  color: #38bdf8;
  margin-top: 6px;
  line-height: 1.4;
  opacity: 0.85;
}

.btn-icon {
  width: 36px;
  height: 36px;
  background: rgba(22, 33, 51, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-cyan);
  color: #fff;
}

/* Supercharged Inventory Grid (4x10) */
.sc-presets-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preset-label {
  font-size: 11px;
  color: var(--text-muted);
}

.preset-select {
  flex: 1;
  background: rgba(10, 16, 26, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.tech-inventory-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  background: rgba(6, 10, 16, 0.9);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.tech-slot {
  aspect-ratio: 1;
  background: rgba(18, 26, 39, 0.6);
  border: 1px solid rgba(45, 68, 102, 0.4);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.tech-slot:hover {
  background: rgba(30, 48, 77, 0.8);
  border-color: var(--border-glow);
}

.tech-slot .slot-coord {
  font-size: 7px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Supercharged Slot Pulsing Animation */
.tech-slot.supercharged {
  background: radial-gradient(circle at center, rgba(192, 72, 248, 0.45) 0%, rgba(106, 27, 154, 0.3) 70%);
  border: 1.5px solid var(--neon-purple);
  box-shadow: 0 0 12px rgba(192, 72, 248, 0.7), inset 0 0 6px rgba(192, 72, 248, 0.5);
  animation: sc-pulse 2s infinite ease-in-out;
}

@keyframes sc-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(192, 72, 248, 0.6), inset 0 0 4px rgba(192, 72, 248, 0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(192, 72, 248, 0.9), inset 0 0 8px rgba(192, 72, 248, 0.7);
  }
}

.sc-badge {
  font-size: 8px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.05em;
  text-shadow: 0 0 6px var(--neon-purple);
}

.sc-multiplier {
  font-size: 6px;
  font-weight: 800;
  color: var(--neon-purple);
}

.sc-hint, .json-hint {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* Parts Specification Breakdown List */
.parts-summary-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.part-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(12, 18, 28, 0.7);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(45, 68, 102, 0.3);
}

.row-left {
  display: flex;
  flex-direction: column;
}

.row-group {
  font-size: 9px;
  color: var(--neon-cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.row-name {
  font-size: 11px;
  color: var(--text-main);
  font-weight: 700;
}

.row-id {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
}

/* JSON Area */
.json-export-area {
  width: 100%;
  background: rgba(6, 10, 16, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #a5d6a7;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 8px;
  resize: vertical;
  outline: none;
}

/* Notifications Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(14, 23, 36, 0.95);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 1000;
}

.toast-notification.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}
::-webkit-scrollbar-thumb {
  background: rgba(45, 68, 102, 0.6);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}
