/* ==========================================================================
   ANIME PFP GENERATOR - PREMIUM DESIGN SYSTEM & CORE STYLES
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --bg-dark: #06040b;
  --bg-card: rgba(13, 9, 24, 0.55);
  --bg-console: rgba(5, 3, 10, 0.9);
  
  /* Neons */
  --neon-magenta: #ff007f;
  --neon-cyan: #00f0ff;
  --neon-purple: #9d4edd;
  --neon-orange: #ff5e00;
  --neon-pink: #ff758f;
  
  /* Statuses */
  --color-green: #390099;
  --color-neon-green: #39ff14;
  --color-yellow: #ffb703;
  --color-text-primary: #f3effa;
  --color-text-secondary: #a39bb8;
  --color-text-muted: #665e7d;
  
  /* Borders & Shadows */
  --border-neon-subtle: rgba(157, 78, 221, 0.2);
  --border-white-subtle: rgba(255, 255, 255, 0.06);
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
  
  --shadow-magenta-glow: 0 0 20px rgba(255, 0, 127, 0.4);
  --shadow-cyan-glow: 0 0 20px rgba(0, 240, 255, 0.4);
  --shadow-purple-glow: 0 0 20px rgba(157, 78, 221, 0.35);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

/* Reset & Base Elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
}

/* Hide Scrollbar default but style it custom */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

/* Dynamic Ambient Gradient Mesh Background */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #0d081b, #030206);
}

.bg-glow-ball {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.ball-purple {
  width: 50vw;
  height: 50vw;
  background: var(--neon-purple);
  top: -10%;
  left: 10%;
  animation: float-slow 22s infinite alternate;
}

.ball-cyan {
  width: 45vw;
  height: 45vw;
  background: var(--neon-cyan);
  bottom: -5%;
  right: -5%;
  animation: float-slow 18s infinite alternate-reverse;
}

.ball-magenta {
  width: 35vw;
  height: 35vw;
  background: var(--neon-magenta);
  top: 40%;
  left: 60%;
  animation: float-slow 26s infinite alternate;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, -8%) scale(1.1); }
  100% { transform: translate(-3%, 4%) scale(0.95); }
}

/* Structure & Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.app-header {
  padding: 30px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--border-white-subtle);
  margin-bottom: 30px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-neon-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
  letter-spacing: 1px;
}

.logo-white-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon-magenta);
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}

.sys-pulse-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 50px;
  margin-left: 10px;
}

.sys-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-neon-green);
  animation: pulse-dot-glow 1.8s infinite ease-in-out;
}

@keyframes pulse-dot-glow {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.sys-status-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-neon-green);
  letter-spacing: 1px;
}

.header-tagline {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 450;
  letter-spacing: 0.5px;
}

/* Workspace Grid System */
.workspace-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  flex: 1;
  margin-bottom: 40px;
  align-items: start;
}

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

@media (max-width: 480px) {
  .app-container {
    padding: 0 16px;
  }
  .app-header {
    padding: 20px 0 15px;
  }
  .logo-neon-text, .logo-white-text {
    font-size: 1.6rem;
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-white-subtle);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-white-subtle), transparent);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-white-subtle);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-number {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.panel-title-group h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.deco-dots {
  width: 12px;
  height: 12px;
  background-image: radial-gradient(var(--color-text-muted) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.6;
}

.hologram-grid-indicator {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-magenta);
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(255, 0, 127, 0.4);
  position: relative;
  padding-left: 12px;
}

.hologram-grid-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background-color: var(--neon-magenta);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-magenta);
}

/* Forms & Inputs */
.input-group {
  margin-bottom: 26px;
}

.group-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.group-label .required {
  color: var(--neon-magenta);
}

/* 1. Drag & Drop File Upload Zone */
.upload-zone {
  border: 2px dashed rgba(157, 78, 221, 0.35);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  text-align: center;
  background: rgba(12, 8, 28, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.upload-icon {
  width: 38px;
  height: 38px;
  color: var(--neon-purple);
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.upload-zone:hover .upload-icon {
  color: var(--neon-cyan);
  transform: translateY(-3px);
}

.upload-text-main {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.upload-text-sub {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.highlight-click {
  color: var(--neon-cyan);
  text-decoration: underline;
  font-weight: 500;
}

.upload-limits {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  display: block;
}

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

/* Image Preview Mode inside upload zone */
.upload-active-preview {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d091a;
}

.upload-active-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
}

.btn-remove-image {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-fast);
}

.btn-remove-image:hover {
  background: var(--neon-magenta);
  border-color: var(--neon-magenta);
  transform: scale(1.1);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scanning-reticle {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
  pointer-events: none;
}

.scanning-reticle::before, .scanning-reticle::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--neon-cyan);
}

.scanning-reticle::before {
  top: 0; left: 0;
  border-right: none; border-bottom: none;
}

.scanning-reticle::after {
  bottom: 0; right: 0;
  border-left: none; border-top: none;
}

/* 2. Interactive Style Grid cards */
.styles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.style-card {
  position: relative;
  display: block;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-white-subtle);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.style-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.04);
}

.style-card.active {
  background: rgba(157, 78, 221, 0.08);
  border-color: var(--neon-purple);
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.15);
}

.style-card.active .style-icon-box {
  transform: scale(1.1);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
  background: radial-gradient(circle at 10% 50%, rgba(157, 78, 221, 0.12), transparent 60%);
}

.style-card.active .card-glow {
  opacity: 1;
}

.card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  position: relative;
  z-index: 2;
}

.style-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition-smooth);
}

.style-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.style-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.style-desc {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.style-radio-hidden {
  display: none;
}

/* Card Glow variants based on selected styles */
.orange-glow { text-shadow: 0 0 10px rgba(255, 94, 0, 0.6); }
.pink-glow { text-shadow: 0 0 10px rgba(255, 0, 127, 0.6); }
.blue-glow { text-shadow: 0 0 10px rgba(0, 240, 255, 0.6); }
.yellow-glow { text-shadow: 0 0 10px rgba(255, 183, 3, 0.6); }
.purple-glow { text-shadow: 0 0 10px rgba(157, 78, 221, 0.6); }

/* 3. Advanced Customizer Selections */
.features-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .features-form-grid {
    grid-template-columns: 1fr;
  }
  .features-form-grid .full-row {
    grid-column: span 1;
  }
}

.features-form-grid .full-row {
  grid-column: span 2;
}

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

.selector-field label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.5px;
}

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

.custom-select-wrapper::after {
  content: '▾';
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  right: 12px;
  top: 50%;
  transform: translateY(-55%);
  position: absolute;
  pointer-events: none;
  transition: var(--transition-fast);
}

.custom-select-wrapper select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(12, 8, 28, 0.45);
  border: 1px solid var(--border-white-subtle);
  border-radius: var(--border-radius-md);
  padding: 10px 14px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-select-wrapper select:focus {
  border-color: var(--neon-purple);
  background: rgba(12, 8, 28, 0.6);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.1);
}

.custom-select-wrapper select option {
  background: #0f0a1c;
  color: var(--color-text-primary);
}

/* Actions */
.submit-area {
  margin-top: 30px;
}

.glow-button {
  width: 100%;
  position: relative;
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(90deg, #9d4edd, #ff007f);
  border: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-purple-glow);
  transition: var(--transition-smooth);
}

.glow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.5), 0 0 10px rgba(157, 78, 221, 0.4);
}

.glow-button:active {
  transform: translateY(0);
}

.btn-glow-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: var(--transition-smooth);
  animation: shine-sweep 3s infinite linear;
}

@keyframes shine-sweep {
  0% { left: -100%; }
  100% { left: 150%; }
}

.btn-text {
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   RIGHT COLUMN: OUTPUT WORKSPACE & AI SIMULATOR
   ========================================================================== */

.display-content-container {
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* STATE A: IDLE STATE */
.output-idle-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 10px;
  position: relative;
}

/* Glowing Rotating Emitter */
.hologram-pod {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.holo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.holo-ring.outer {
  width: 130px;
  height: 130px;
  animation: rotate-holo-cw 20s infinite linear;
  border-color: rgba(157, 78, 221, 0.35);
}

.holo-ring.inner {
  width: 90px;
  height: 90px;
  animation: rotate-holo-ccw 14s infinite linear;
  border-color: rgba(255, 0, 127, 0.3);
}

.holo-emitter-base {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emitter-core {
  width: 14px;
  height: 14px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: var(--shadow-cyan-glow), 0 0 30px var(--neon-cyan);
  animation: core-pulse 2.2s infinite ease-in-out;
}

@keyframes core-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; filter: brightness(1.2); }
}

@keyframes rotate-holo-cw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotate-holo-ccw {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.idle-text-container {
  max-width: 320px;
}

.idle-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.idle-desc {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.card-deco-grid {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  opacity: 0.15;
}

.card-deco-grid span {
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
}

/* STATE B: SCANNING STATE */
.output-scanning-state {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 10px 0;
}

.scanning-graphics {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.avatar-shroud {
  width: 130px;
  height: 130px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0, 240, 255, 0.3);
  position: relative;
  background: rgba(0, 0, 0, 0.5) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><rect width="30" height="30" fill="none" stroke="rgba(0,240,255,0.06)" stroke-width="1"/></svg>') repeat;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
  overflow: hidden;
}

.scan-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
  animation: laser-sweep 2s infinite ease-in-out;
  z-index: 5;
}

@keyframes laser-sweep {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.avatar-vector-blueprint {
  width: 100%;
  height: 100%;
  opacity: 0.35;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 10%, transparent 65%);
  position: relative;
  animation: blueprint-pulse 1.2s infinite ease-in-out;
}

.avatar-vector-blueprint::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed var(--neon-cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes blueprint-pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.25; }
  50% { transform: scale(1.05); opacity: 0.55; }
}

.scanning-progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid var(--border-white-subtle);
  overflow: hidden;
}

.scanning-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transition: width 0.1s linear;
}

.scan-percentage {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}

/* Console Log terminal styling */
.console-card {
  background: var(--bg-console);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.8);
  overflow: hidden;
}

.console-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.console-dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.console-dot-btn.close { background-color: var(--neon-magenta); }
.console-dot-btn.min { background-color: var(--color-yellow); }
.console-dot-btn.max { background-color: #00ff66; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-text-secondary);
  margin-left: 8px;
  letter-spacing: 0.5px;
}

.console-screen {
  padding: 16px;
  height: 180px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--color-neon-green);
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-line {
  word-break: break-all;
}

.console-line.sys { color: var(--color-text-secondary); }
.console-line.warn { color: var(--color-yellow); }
.console-line.success { color: var(--neon-cyan); text-shadow: 0 0 5px rgba(0,240,255,0.2); }

/* STATE C: SUCCESS / COMPLED OUTPUT STATE */
.output-success-state {
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: reveal-result 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes reveal-result {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.avatar-and-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 600px) {
  .avatar-and-actions {
    flex-direction: column;
    text-align: center;
  }
}

/* Glowing Holo avatar container */
.avatar-glow-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  min-width: 150px;
  border-radius: var(--border-radius-lg);
  padding: 4px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
  box-shadow: var(--shadow-magenta-glow), 0 0 40px rgba(157, 78, 221, 0.2);
}

.rendered-pfp-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--border-radius-lg) - 2px);
  background: #000;
  display: block;
}

/* Avatar Frame Corners decoration */
.avatar-holo-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--neon-cyan);
  pointer-events: none;
  z-index: 5;
}

.avatar-holo-corner.topl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.avatar-holo-corner.topr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.avatar-holo-corner.botl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.avatar-holo-corner.botr { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.avatar-style-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f0a21;
  border: 1px solid var(--neon-magenta);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
  border-radius: 4px;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-text-primary);
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.avatar-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.action-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-btn-pill.glow-pink {
  background: var(--neon-magenta);
  box-shadow: var(--shadow-magenta-glow);
}

.action-btn-pill.glow-pink:hover {
  box-shadow: 0 0 25px var(--neon-magenta);
  transform: translateY(-2px);
}

/* Prompt and design breakdown layout styling */
.prompt-breakdown-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-title-tag span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--color-text-secondary);
  letter-spacing: 0.8px;
}

.prompt-bubble {
  background: rgba(12, 8, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 16px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  border-left: 3px solid var(--neon-cyan);
}

.btn-copy-prompt {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-copy-prompt:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-copy-prompt.success {
  background: rgba(57, 255, 20, 0.08);
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
}

.copy-icon {
  stroke-width: 2.2;
}

/* Breakdown Detail list cards */
.breakdown-details-list {
  background: rgba(12, 8, 28, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .breakdown-item {
    flex-direction: column;
    gap: 2px;
  }
}

.breakdown-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-secondary);
  width: 140px;
  min-width: 140px;
}

.breakdown-value {
  color: var(--color-text-primary);
}

.highlight-cyan {
  color: var(--neon-cyan);
  font-weight: 550;
}

.highlight-magenta {
  color: var(--neon-magenta);
  font-weight: 550;
}

.reset-area {
  margin-top: 10px;
}

.btn-reset-panel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-reset-panel:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.btn-reset-panel svg {
  transition: transform 0.4s ease;
}

.btn-reset-panel:hover svg {
  transform: rotate(-180deg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
  border-top: 1px solid var(--border-white-subtle);
  padding: 20px 0 30px;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .app-footer {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
}

.hidden {
  display: none !important;
}
