/* NextShift Monochrome Pixel Theme */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:wght@400;700&display=swap');

:root {
  --black: #0a0a0a;
  --grey-900: #1a1a1a;
  --grey-800: #2a2a2a;
  --grey-700: #3a3a3a;
  --grey-600: #4a4a4a;
  --grey-500: #6a6a6a;
  --grey-400: #8a8a8a;
  --grey-300: #aaaaaa;
  --white: #ffffff;
  --bg-primary: var(--black);
  --bg-secondary: var(--grey-900);
  --text-primary: var(--white);
  --text-secondary: var(--grey-300);
  --text-muted: var(--grey-500);
  --pixel-border: 4px solid var(--white);
  --pixel-border-thin: 2px solid var(--white);
  --section-padding: 100px 0;
  --container-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Space Mono', monospace; background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0 1px, transparent 1px 2px);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--white); color: var(--black); }

h1, h2, h3, h4 { font-family: 'Press Start 2P', cursive; font-weight: 400; line-height: 1.5; margin-bottom: 1.5rem; text-transform: uppercase; }
h1 { font-size: clamp(1.25rem, 3vw, 2rem); }
h2 { font-size: clamp(1rem, 2.5vw, 1.5rem); }
h3 { font-size: clamp(0.875rem, 2vw, 1.125rem); }
p { margin-bottom: 1rem; color: var(--text-secondary); }

.text-gradient { background: linear-gradient(90deg, var(--white), var(--grey-400)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-padding); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header p { max-width: 700px; margin: 0 auto; }

.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.65rem;
  border: var(--pixel-border);
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  background: var(--bg-primary);
  color: var(--white);
  transition: transform 0.1s steps(2);
}
.btn::after { content: ''; position: absolute; top: 4px; left: 4px; right: -4px; bottom: -4px; background: var(--grey-700); z-index: -1; }
.btn:hover { transform: translate(2px, 2px); }
.btn:hover::after { transform: translate(-2px, -2px); }
.btn-primary { background: var(--white); color: var(--black); }
.btn-secondary { background: transparent; }
.btn-glow { box-shadow: 0 0 0 2px var(--black), 0 0 20px rgba(255, 255, 255, 0.2); }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: background 0.3s; }
.header.scrolled { background: rgba(10, 10, 10, 0.95); border-bottom: var(--pixel-border-thin); }
.header .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; margin-left: -10px; }
.logo-icon { height: 50px; width: auto; }
.logo-name { height: 35px; width: auto; }
.footer .logo-icon { height: 40px; }
.footer .logo-name { height: 28px; }
@media (max-width: 768px) { .logo-icon { height: 35px; } .logo-name { height: 24px; } }

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-menu a { font-family: 'Press Start 2P', cursive; font-size: 0.55rem; color: var(--text-secondary); text-transform: uppercase; position: relative; transition: color 0.15s steps(4); }
.nav-menu a::before { content: '>'; position: absolute; left: -15px; opacity: 0; transition: opacity 0.15s steps(4); }
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::before { opacity: 1; }

.mobile-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.mobile-toggle span { width: 24px; height: 3px; background: var(--white); }
@media (max-width: 992px) {
  .mobile-toggle { display: flex; }
  .nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--bg-primary); flex-direction: column; justify-content: center; transition: right 0.3s; }
  .nav-menu.active { right: 0; }
}

.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; overflow: hidden; position: relative; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 32px 32px; }
.particles { position: absolute; inset: 0; overflow: hidden; }
.particle { position: absolute; width: 4px; height: 4px; background: var(--white); opacity: 0.3; animation: pixelFloat 20s infinite; }
.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; }
@keyframes pixelFloat { 0%, 100% { transform: translateY(100vh); opacity: 0; } 5%, 95% { opacity: 0.3; } }

.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { margin-bottom: 2rem; line-height: 1.8; }
.hero-text .subtitle { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 40px; margin-top: 3rem; padding-top: 2rem; border-top: var(--pixel-border-thin); }
.stat { text-align: center; }
.stat-value { font-family: 'Press Start 2P', cursive; font-size: 1.25rem; color: var(--white); display: block; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

.hero-visual { display: flex; justify-content: center; }
.ai-orb { width: 350px; height: 280px; position: relative; }
.orb-core { width: 100%; height: 100%; border: var(--pixel-border); background: var(--bg-secondary); display: flex; flex-direction: column; position: relative; }
.orb-core::before { content: 'NEXTSHIFT TERMINAL v1.0'; position: absolute; top: -30px; font-family: 'Press Start 2P', cursive; font-size: 0.5rem; color: var(--grey-500); }
.orb-core::after { content: '> READY_'; position: absolute; bottom: 20px; left: 20px; font-family: 'Space Mono', monospace; color: var(--white); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.orb-ring { height: 30px; background: var(--grey-800); border-bottom: 2px solid var(--grey-700); display: flex; align-items: center; padding: 0 10px; gap: 8px; }
.orb-ring:nth-child(2), .orb-ring:nth-child(3), .orb-ring:nth-child(4) { display: none; }
.orb-ring::before, .orb-ring::after { content: ''; width: 10px; height: 10px; background: var(--grey-600); border: 2px solid var(--grey-500); }
.data-points { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.data-point { height: 12px; background: var(--grey-700); animation: typeLine 2s ease-out forwards; }
@keyframes typeLine { from { width: 0; } to { width: var(--line-width, 70%); } }
.data-point:nth-child(1) { --line-width: 80%; animation-delay: 0.5s; }
.data-point:nth-child(2) { --line-width: 60%; animation-delay: 1s; }
.data-point:nth-child(3) { --line-width: 90%; animation-delay: 1.5s; }
.data-point:nth-child(4) { --line-width: 45%; animation-delay: 2s; }
.data-point:nth-child(5) { --line-width: 70%; animation-delay: 2.5s; }
.data-point:nth-child(6) { --line-width: 55%; animation-delay: 3s; }

@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .ai-orb { width: 300px; height: 240px; }
}

/* Comparison Section */
.comparison { background: var(--bg-secondary); }
.comparison-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.comparison-card { border: var(--pixel-border); padding: 40px; background: var(--bg-primary); }
.comparison-card.nextshift { background: var(--grey-900); border-color: var(--grey-400); }
.comparison-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: var(--pixel-border-thin); }
.comparison-header h3 { margin-bottom: 0.5rem; }
.comparison-list { display: flex; flex-direction: column; gap: 16px; }
.comparison-item { display: flex; align-items: center; gap: 15px; font-size: 0.9rem; }
.comparison-item .icon { font-family: 'Press Start 2P', cursive; font-size: 0.7rem; width: 24px; flex-shrink: 0; }
.comparison-item.negative .icon { color: var(--grey-500); }
.comparison-item.positive .icon { color: var(--white); }
@media (max-width: 768px) { .comparison-grid { grid-template-columns: 1fr; } }

/* Feature Cards */
.features { background: var(--bg-primary); }
.feature-card { border: var(--pixel-border-thin); padding: 40px 30px; background: var(--bg-secondary); transition: transform 0.15s steps(4), border-color 0.15s steps(4); }
.feature-card:hover { transform: translate(-4px, -4px); border-color: var(--white); }
.feature-icon { font-size: 2rem; margin-bottom: 1.5rem; filter: grayscale(100%); }
.feature-card h3 { font-size: 0.75rem; margin-bottom: 1rem; }
.feature-card p { font-size: 0.9rem; }

/* Services/Pricing Section */
.services-preview { background: var(--bg-secondary); }
.tier-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tier-card { border: var(--pixel-border-thin); padding: 30px 20px; background: var(--bg-primary); display: flex; flex-direction: column; }
.tier-card.featured { border: var(--pixel-border); position: relative; }
.tier-card.featured::before { content: 'POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--white); color: var(--black); font-family: 'Press Start 2P', cursive; font-size: 0.5rem; padding: 4px 12px; }
.tier-name { font-family: 'Press Start 2P', cursive; font-size: 0.7rem; margin-bottom: 1rem; text-transform: uppercase; }
.tier-price { font-family: 'Press Start 2P', cursive; font-size: 1.5rem; margin-bottom: 0.5rem; }
.tier-price span { font-size: 0.6rem; color: var(--text-muted); }
.tier-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.tier-features { flex: 1; margin-bottom: 1.5rem; }
.tier-features li { padding: 8px 0; font-size: 0.85rem; border-bottom: 1px solid var(--grey-800); color: var(--text-secondary); }
.tier-features li::before { content: '> '; color: var(--grey-500); }
.ai-rate { margin-top: 1rem; padding-top: 1rem; border-top: var(--pixel-border-thin); display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; }
.ai-rate span { color: var(--text-muted); }
.ai-rate strong { font-family: 'Press Start 2P', cursive; color: var(--white); }
@media (max-width: 1200px) { .tier-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .tier-cards { grid-template-columns: 1fr; } }

/* Metrics Section */
.metrics { background: var(--bg-primary); border-top: var(--pixel-border-thin); border-bottom: var(--pixel-border-thin); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.metric-item { padding: 40px 20px; }
.metric-value { font-family: 'Press Start 2P', cursive; font-size: 2rem; color: var(--white); margin-bottom: 1rem; display: block; }
.metric-unit { font-family: 'Space Mono', monospace; font-size: 0.5em; vertical-align: baseline; margin-left: 4px; }
.metric-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
@media (max-width: 768px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA Section */
.cta { background: var(--bg-secondary); text-align: center; }
.cta h2 { margin-bottom: 1.5rem; }
.cta p { max-width: 600px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--black); padding: 80px 0 40px; border-top: var(--pixel-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand p { margin: 1.5rem 0; font-size: 0.9rem; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; border: var(--pixel-border-thin); display: flex; align-items: center; justify-content: center; font-family: 'Press Start 2P', cursive; font-size: 0.7rem; transition: background 0.15s steps(4); }
.social-links a:hover { background: var(--white); color: var(--black); }
.footer-column h4 { font-size: 0.65rem; margin-bottom: 1.5rem; }
.footer-column ul { display: flex; flex-direction: column; gap: 12px; }
.footer-column a { font-size: 0.85rem; color: var(--text-secondary); transition: color 0.15s steps(4); }
.footer-column a:hover { color: var(--white); }
.footer-bottom { padding-top: 40px; border-top: var(--pixel-border-thin); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 20px; text-align: center; } }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-family: 'Press Start 2P', cursive; font-size: 0.6rem; margin-bottom: 0.75rem; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 16px; font-family: 'Space Mono', monospace; font-size: 1rem; background: var(--bg-secondary); border: var(--pixel-border-thin); color: var(--white); outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--white); }
.form-group textarea { min-height: 150px; resize: vertical; }

/* Contact Page */
.contact-section { padding-top: 150px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 30px; }
.contact-item { border: var(--pixel-border-thin); padding: 30px; background: var(--bg-secondary); }
.contact-item h4 { font-size: 0.65rem; margin-bottom: 1rem; }
.contact-item p { font-size: 0.9rem; margin: 0; }
@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; } }

/* About Page */
.about-hero { padding-top: 150px; padding-bottom: 80px; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { border: var(--pixel-border); height: 400px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.about-visual::before { content: '[ SYSTEM READY ]'; font-family: 'Press Start 2P', cursive; font-size: 0.8rem; color: var(--grey-500); }
@media (max-width: 992px) { .about-content { grid-template-columns: 1fr; } }

/* Services Page */
.services-hero { padding-top: 150px; padding-bottom: 80px; }
.service-detail { border: var(--pixel-border-thin); padding: 40px; background: var(--bg-secondary); margin-bottom: 30px; }
.service-detail h3 { margin-bottom: 1.5rem; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.service-list li { padding: 10px 0; font-size: 0.9rem; color: var(--text-secondary); }
.service-list li::before { content: '> '; color: var(--grey-500); }
@media (max-width: 768px) { .service-list { grid-template-columns: 1fr; } }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

/* Stagger Animation */
.stagger-children > * { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.5s ease forwards; }
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }


/* Link Avatar Container */
.avatar-container {
  width: 380px;
  border: 4px solid var(--white);
  background: var(--bg-secondary);
  position: relative;
}
.avatar-container::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  background: var(--grey-700);
  z-index: -1;
}
.avatar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--grey-800);
  border-bottom: 2px solid var(--grey-700);
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  color: var(--grey-400);
}
.avatar-status {
  width: 8px;
  height: 8px;
  background: var(--white);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.avatar-frame {
  width: 100%;
  height: 280px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.avatar-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
}
.avatar-icon {
  width: 80px;
  height: 80px;
  border: 2px solid var(--grey-600);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-icon svg {
  width: 50px;
  height: 50px;
}
.avatar-prompt {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  color: var(--grey-400);
  animation: blink 1.5s steps(1) infinite;
}
.avatar-video {
  width: 100%;
  height: 100%;
  border: none;
}
.avatar-controls {
  display: flex;
  gap: 10px;
  padding: 16px;
  background: var(--grey-800);
  border-top: 2px solid var(--grey-700);
}
.avatar-btn {
  flex: 1;
  padding: 14px 20px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  background: var(--white);
  color: var(--black);
  border: 3px solid var(--white);
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.1s steps(2);
}
.avatar-btn:hover:not(:disabled) {
  transform: translate(2px, 2px);
}
.avatar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.avatar-btn-secondary {
  background: transparent;
  color: var(--white);
}

/* Expanded fullscreen mode */
.avatar-container.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 800px;
  z-index: 10000;
}
.avatar-container.expanded .avatar-frame {
  height: 60vh;
}
.avatar-container.expanded::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: -2;
}

@media (max-width: 992px) {
  .avatar-container { width: 320px; }
  .avatar-frame { height: 240px; }
}
@media (max-width: 768px) {
  .avatar-container { width: 100%; max-width: 350px; }
}

/* Retro Green Terminal Styles */
:root {
  --terminal-green: #00ff41;
  --terminal-green-dim: #00aa2a;
  --terminal-green-glow: rgba(0, 255, 65, 0.3);
}

.avatar-container {
  border-color: var(--terminal-green);
  box-shadow: 0 0 20px var(--terminal-green-glow), inset 0 0 20px rgba(0, 255, 65, 0.05);
}
.avatar-container::before {
  background: var(--terminal-green-dim);
  opacity: 0.3;
}
.avatar-header {
  background: linear-gradient(180deg, #001a00 0%, #000d00 100%);
  border-bottom-color: var(--terminal-green-dim);
  color: var(--terminal-green);
  text-shadow: 0 0 10px var(--terminal-green-glow);
}
.avatar-status {
  background: var(--terminal-green);
  box-shadow: 0 0 8px var(--terminal-green);
}
.avatar-frame {
  background: linear-gradient(180deg, #000800 0%, #000000 100%);
}
.avatar-icon svg circle,
.avatar-icon svg path {
  stroke: var(--terminal-green);
  filter: drop-shadow(0 0 3px var(--terminal-green));
}
.avatar-prompt {
  color: var(--terminal-green);
  text-shadow: 0 0 10px var(--terminal-green-glow);
}
.avatar-controls {
  background: linear-gradient(180deg, #000d00 0%, #001a00 100%);
  border-top-color: var(--terminal-green-dim);
}
.avatar-btn {
  background: transparent;
  color: var(--terminal-green);
  border-color: var(--terminal-green);
  text-shadow: 0 0 5px var(--terminal-green-glow);
  box-shadow: 0 0 10px var(--terminal-green-glow);
}
.avatar-btn:hover:not(:disabled) {
  background: var(--terminal-green);
  color: #000;
  text-shadow: none;
}

/* ASCII art scanlines overlay */
.avatar-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 255, 65, 0.03) 2px,
    rgba(0, 255, 65, 0.03) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* CRT flicker effect */
.avatar-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 11;
  animation: scanline 10s linear infinite;
}
@keyframes scanline {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* ASCII Art Styles */
.ascii-art {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  line-height: 1.2;
  color: var(--terminal-green);
  text-shadow: 0 0 10px var(--terminal-green-glow), 0 0 20px var(--terminal-green-glow);
  margin: 0;
  text-align: center;
  animation: glitch 3s infinite;
}
.ascii-face {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  line-height: 1.1;
  color: var(--terminal-green);
  text-shadow: 0 0 8px var(--terminal-green-glow);
  margin: 10px 0;
  text-align: center;
  animation: float 3s ease-in-out infinite;
}
@keyframes glitch {
  0%, 90%, 100% { opacity: 1; transform: translateX(0); }
  92% { opacity: 0.8; transform: translateX(-2px); }
  94% { opacity: 0.9; transform: translateX(2px); }
  96% { opacity: 0.7; transform: translateX(-1px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.avatar-idle {
  flex-direction: column;
  gap: 5px;
}
.avatar-prompt {
  font-size: 0.55rem;
  letter-spacing: 1px;
}
/* Avatar Video Preview Styles */
.avatar-preview {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(20%);
}

/* Fix avatar video display */
.avatar-idle {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  padding: 10px;
}
.avatar-preview {
  display: block !important;
  position: relative;
  z-index: 5;
  max-height: 200px;
}
.avatar-frame::before,
.avatar-frame::after {
  pointer-events: none;
}

/* Easter Egg */
.easter-egg {
  color: rgba(255,255,255,0.1);
  font-size: 0.65rem;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  transition: color 0.3s ease;
  display: block;
  margin-top: 10px;
}
.easter-egg:hover {
  color: #00ff41;
  text-shadow: 0 0 10px #00ff41;
}
