.generator-section {
  position: relative;
  z-index: 1;
  padding: 40px 16px 80px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gen-wrapper {
  max-width: 600px;
  width: 100%;
}

.gen-header {
  text-align: center;
  margin-bottom: 40px;
}

.gen-title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(191,95,255,0.3);
}

.gen-subtitle {
  font-size: 15px;
  color: #c0c8d8;
}

.progress-container {
  margin-bottom: 32px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--neon-red), var(--neon-purple));
  width: 25%;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--neon-purple);
}

/* Stepper System */
.step {
  display: none;
  animation: fadeSlideUp 0.4s ease forwards;
}

.step.active {
  display: block;
}

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

.step-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.cards-grid.three-cols {
  grid-template-columns: 1fr 1fr 1fr;
}

.gen-card {
  background: var(--dark-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.gen-card:hover {
  border-color: rgba(191,95,255,0.4);
  transform: translateY(-4px);
  background: rgba(191,95,255,0.05);
}

.gen-card.selected {
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(191,95,255,0.15);
  background: rgba(191,95,255,0.08);
}

.gen-card-icon {
  font-size: 36px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

.gen-card-title {
  font-weight: 700;
  color: #e8eaf0;
  font-size: 15px;
}

.gen-actions {
  text-align: center;
}

/* Result Screen */
.result-screen {
  text-align: center;
}

.result-loader {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── COOL SCANNER LOADER ── */
.loader-scanner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
}

.scanner-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.scanner-ring-1 {
  inset: 0;
  border-top-color: var(--neon-purple);
  border-right-color: rgba(191,95,255,0.3);
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 18px rgba(191,95,255,0.4), inset 0 0 18px rgba(191,95,255,0.08);
}

.scanner-ring-2 {
  inset: 14px;
  border-bottom-color: var(--neon-red);
  border-left-color: rgba(255,45,85,0.3);
  animation: spin 1.8s linear infinite reverse;
  box-shadow: 0 0 12px rgba(255,45,85,0.35);
}

.scanner-ring-3 {
  inset: 28px;
  border-top-color: rgba(0,212,255,0.8);
  border-right-color: rgba(0,212,255,0.2);
  animation: spin 2.4s linear infinite;
  box-shadow: 0 0 10px rgba(0,212,255,0.3);
}

.scanner-core {
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191,95,255,0.25), rgba(8,6,18,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(191,95,255,0.4);
  animation: corePulse 2s ease-in-out infinite;
}

.scanner-icon {
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(191,95,255,0.8));
}

.scanner-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 75%, rgba(191,95,255,0.25) 100%);
  animation: spin 1.2s linear infinite;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(191,95,255,0.4); }
  50%       { box-shadow: 0 0 24px rgba(191,95,255,0.8); }
}

.loader-label {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 40%, #bf5fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.loader-sub {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.loader-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-purple);
  animation: dotBounce 1.2s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

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

.loader-progress-bar {
  width: 220px;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 20px;
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-red), var(--neon-purple), #00d4ff);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(191,95,255,0.6);
  transition: width 0.4s ease;
  animation: loaderFill 2.4s ease forwards;
}

@keyframes loaderFill {
  0%   { width: 0%; }
  30%  { width: 45%; }
  65%  { width: 78%; }
  100% { width: 97%; }
}

.loader-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.loader-step {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.3px;
  transition: all 0.4s;
}

.loader-step.done {
  color: #4ade80;
}

.loader-step.active {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(191,95,255,0.6);
  animation: stepPulse 1.5s ease-in-out infinite;
}

@keyframes stepPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* keep old .spinner class as fallback */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(191,95,255,0.2);
  border-top-color: var(--neon-purple);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 20px;
}

.result-content {
  display: none;
  animation: fadeSlideUp 0.5s ease forwards;
}

.result-box {
  background: var(--dark-card);
  border: 1px solid rgba(191,95,255,0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(191,95,255,0.1);
  text-align: left;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: #c0c8d8;
  font-weight: 500;
}

.result-item.blurred {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

/* Visible item — full color, normal */
.result-item--visible {
  color: #fff;
  font-weight: 700;
}

.result-item--visible .result-value {
  color: #4ade80;
  font-size: 19px;
}

/* Partial item — label readable, value dim/obfuscated */
.result-item--partial {
  opacity: 0.72;
}

.result-item--partial .partial-val {
  color: #a78bfa;
  filter: blur(0.5px);
  letter-spacing: 3px;
  user-select: none;
}

/* Locked item — fully blurred, unselectable */
.result-item--locked {
  filter: blur(3.5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.45;
}

.result-item--locked .locked-val {
  color: #6b7280;
  letter-spacing: 3px;
}

.result-item:last-child {
  border-bottom: none;
}

.result-value {
  color: #4ade80;
  font-weight: 800;
  font-family: monospace;
  font-size: 17px;
  letter-spacing: 1px;
}

/* Locked Overlay */
.blur-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 270px;
  background: linear-gradient(to top, rgba(8,6,18,0.98) 40%, rgba(8,6,18,0.6) 75%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px 28px;
  z-index: 10;
  text-align: center;
}

.lock-badge {
  font-size: 36px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 18px rgba(191,95,255,0.8));
  animation: lockPulse 2.5s ease-in-out infinite;
}

@keyframes lockPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(191,95,255,0.6)); }
  50%       { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(191,95,255,1)); }
}

.lock-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #bf5fff, #ff2d55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lock-desc {
  font-size: 13px;
  color: #8b9ab5;
  margin-bottom: 18px;
  line-height: 1.5;
  max-width: 280px;
}

.lock-btn {
  padding: 14px 28px;
  font-size: 14px;
  width: 100%;
  max-width: 280px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 12px;
}

/* keep legacy blur-icon / blur-text for safety */
.blur-icon {
  font-size: 40px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 15px #ff2d55);
}

.blur-text {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

@media (max-width: 500px) {
  .cards-grid.three-cols { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .gen-card { padding: 18px 12px; }
  .gen-card-icon { font-size: 28px; }
}

/* SEARCHABLE MODEL LIST STYLES */
.model-search-box {
  margin-bottom: 20px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 18px;
}

#model-search {
  width: 100%;
  background: var(--dark-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 16px 48px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
  box-sizing: border-box;
}

#model-search:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 15px rgba(191,95,255,0.2);
  background: rgba(255,255,255,0.02);
}

.model-list-container {
  max-height: 400px;
  overflow-y: auto;
  background: var(--dark-card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-purple) transparent;
}

.model-list-container::-webkit-scrollbar {
  width: 6px;
}

.model-list-container::-webkit-scrollbar-thumb {
  background-color: var(--neon-purple);
  border-radius: 10px;
}

.model-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  color: #c0c8d8;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.model-item:last-child {
  border-bottom: none;
}

.model-item:hover {
  background: rgba(191,95,255,0.08);
  color: #fff;
  padding-left: 28px;
}

.model-item.selected {
  background: rgba(191,95,255,0.12);
  color: var(--neon-purple);
  border-left: 4px solid var(--neon-purple);
}

.model-placeholder {
  padding: 40px;
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
}

.no-models {
  padding: 24px;
  text-align: center;
  color: #ff8fa3;
  font-weight: 600;
}
