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

:root {
  /* Premium Black Neumorphism Theme */
  --color-bg: #121416; /* Deep dark grey/black base required for neumorphism */
  --color-text: #e2e8f0;
  --color-text-secondary: #94a3b8;
  --color-text-dim: #64748b;
  --color-neon-green: #10b981;
  --color-neon-bright: #34d399;
  --color-accent: #06b6d4;
  --color-warning: #f43f5e;
  --color-success: #10b981;
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

  /* Neumorphic Shadows (Light source: Top-Left) */
  --shadow-neu-out:
    -5px -5px 12px rgba(32, 36, 40, 0.4),
    /* Highlight reflection */ 5px 5px 12px rgba(0, 0, 0, 0.8); /* Drop shadow */

  --shadow-neu-out-sm:
    -3px -3px 8px rgba(32, 36, 40, 0.4), 3px 3px 8px rgba(0, 0, 0, 0.8);

  --shadow-neu-out-hover:
    -6px -6px 16px rgba(36, 40, 45, 0.5), 6px 6px 16px rgba(0, 0, 0, 0.9);

  --shadow-neu-in:
    inset -4px -4px 8px rgba(32, 36, 40, 0.3),
    inset 4px 4px 8px rgba(0, 0, 0, 0.7);

  --shadow-neu-in-deep:
    inset -6px -6px 12px rgba(32, 36, 40, 0.3),
    inset 6px 6px 12px rgba(0, 0, 0, 0.9);

  /* Other Accents */
  --shadow-glow:
    0 0 30px rgba(16, 185, 129, 0.2), 0 0 60px rgba(6, 182, 212, 0.1);
  --border-glow:
    0 0 0 1px rgba(16, 185, 129, 0.2), inset 0 0 20px rgba(16, 185, 129, 0.05);

  --font-sans:
    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", Courier, monospace;
}

/* Base Body - Solid color for Neumorphism effect */
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%; /* Fullscreen edge-to-edge on desktop */
  margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 40px); /* Responsive padding: tighter on mobile, wider on desktop */
}

/* Header Neumorphism */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--color-bg);
  box-shadow: var(--shadow-neu-out-sm);
  border-radius: 0 0 20px 20px; /* Rounded bottom corners for premium feel */
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--color-text);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Premium Neumorphic Buttons */
button {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  border-radius: 12px; /* Smoother curve for neumorphism */
}

.btn-primary {
  background: var(--color-bg);
  color: var(--color-neon-bright);
  padding: 12px 24px;
  box-shadow: var(--shadow-neu-out);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neu-out-hover);
  color: #fff;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-neu-in);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 10px 20px;
  box-shadow: var(--shadow-neu-out-sm);
}

.btn-secondary:hover {
  color: var(--color-text);
  box-shadow: var(--shadow-neu-out);
}

.btn-secondary:active {
  box-shadow: var(--shadow-neu-in);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-outline {
  background: var(--color-bg);
  color: var(--color-text);
  border: none;
  box-shadow: var(--shadow-neu-out);
  padding: 16px 36px;
}

.btn-outline:hover {
  box-shadow: var(--shadow-neu-out-hover);
  color: var(--color-neon-green);
}

.btn-outline:active {
  box-shadow: var(--shadow-neu-in);
}

.btn-icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

/* Grand Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 100px 0 80px;
  align-items: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-neon-green);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  text-shadow: none; /* Removed harsh pulse */
}

.hero-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 56px;
}

.stats {
  display: flex;
  gap: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-dim);
  margin-top: 4px;
  font-weight: 500;
}

/* Demo Area */
.demo-area {
  animation: slideLeft 0.8s ease-out;
}

.demo-card {
  background: var(--color-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-neu-out);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
}

.demo-card:hover {
  box-shadow: var(--shadow-neu-out-hover);
}

.demo-header {
  padding: 16px 20px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3); /* Simulate pressed seam */
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}

.demo-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.2);
}

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.demo-title {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.demo-content {
  padding: 24px;
}

.input-area {
  margin-bottom: 24px;
}

.prompt-input {
  width: 100%;
  background: var(--color-bg);
  border: none;
  border-radius: 14px;
  padding: 16px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-neu-in);
}

.prompt-input:focus {
  outline: none;
  box-shadow: var(--shadow-neu-in-deep);
  color: var(--color-neon-bright);
}

.prompt-input::placeholder {
  color: var(--color-text-dim);
}

.generate-btn {
  width: auto; /* No longer full-width — compact inline button */
  min-width: 160px;
  background: var(--color-bg);
  border: none;
  color: var(--color-neon-bright);
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-neu-out-sm);
  margin-top: 8px;
}

.generate-btn svg {
  width: 16px;
  height: 16px;
}

.generate-btn:hover {
  box-shadow: var(--shadow-neu-out-hover);
  color: #fff;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.generate-btn:active {
  box-shadow: var(--shadow-neu-in);
  transform: translateY(2px);
}

/* Terminal Output */
.terminal-output {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  border: none;
  box-shadow: var(--shadow-neu-in-deep);
}

.terminal-line {
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  text-shadow: none;
}

.terminal-prompt {
  color: var(--color-neon-bright);
  font-weight: 600;
}

.terminal-text {
  color: #e2e8f0;
}

.terminal-success {
  color: var(--color-success);
}

.terminal-error {
  color: var(--color-warning);
}

.terminal-warning {
  color: #eab308;
}

.terminal-info {
  color: var(--color-text-dim);
}

.terminal-cursor {
  color: var(--color-neon-bright);
  animation: blink 1s infinite;
  margin-top: 6px;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-description {
  font-size: 18px;
  color: var(--color-text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  padding: 36px 32px;
  border-radius: 20px;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-neu-out);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-neu-out-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--color-bg);
  color: var(--color-neon-bright);
  box-shadow: var(--shadow-neu-in);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.feature-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  color: var(--color-text-dim);
  font-size: 15px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-column a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 15px; /* Increased from 14px */
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: var(--color-text-dim);
  font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideRight {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    /* Slightly soften shadows for tablet */
    --shadow-neu-out:
      -4px -4px 10px rgba(32, 36, 40, 0.4), 4px 4px 10px rgba(0, 0, 0, 0.8);
    --shadow-neu-in:
      inset -3px -3px 6px rgba(32, 36, 40, 0.3),
      inset 3px 3px 6px rgba(0, 0, 0, 0.7);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 42px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .arsenal-layout {
    flex-direction: column;
  }

  .arsenal-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  }

  .sidebar-menu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .sidebar-item {
    white-space: nowrap;
    margin-bottom: 0;
    margin-right: 8px;
  }
}

@media (max-width: 768px) {
  :root {
    /* Scale down shadows for mobile performance and crispness */
    --shadow-neu-out:
      -3px -3px 8px rgba(32, 36, 40, 0.4), 3px 3px 8px rgba(0, 0, 0, 0.8);
    --shadow-neu-out-hover:
      -4px -4px 10px rgba(36, 40, 45, 0.5), 4px 4px 10px rgba(0, 0, 0, 0.9);
    --shadow-neu-in:
      inset -2px -2px 5px rgba(32, 36, 40, 0.3),
      inset 2px 2px 5px rgba(0, 0, 0, 0.7);
  }

  .header {
    padding: 12px 16px;
    border-radius: 0 0 14px 14px;
  }

  .nav {
    gap: 10px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 40px 0 30px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .section-title {
    font-size: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .demo-content {
    padding: 16px;
  }

  .terminal-output {
    min-height: 200px;
    padding: 16px;
    font-size: 12px;
  }

  .prompt-input {
    font-size: 14px;
    min-height: 60px;
    padding: 12px;
  }

  .generate-btn {
    width: 100%; /* Full width on mobile for easy tapping */
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Touch-friendly minimum tap targets (48px per Material/Apple guidelines) */
  button,
  .sidebar-item,
  .nav-link {
    min-height: 44px;
  }
}

/* Small phones (iPhone SE, Galaxy S series, Pixel) */
@media (max-width: 480px) {
  :root {
    --shadow-neu-out:
      -2px -2px 6px rgba(32, 36, 40, 0.35), 2px 2px 6px rgba(0, 0, 0, 0.7);
    --shadow-neu-in:
      inset -2px -2px 4px rgba(32, 36, 40, 0.25),
      inset 2px 2px 4px rgba(0, 0, 0, 0.6);
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-description {
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  .login-card {
    padding: 32px 20px;
  }

  .login-ascii {
    font-size: 10px;
  }

  .discord-login-btn {
    padding: 14px 20px;
    font-size: 13px;
  }
}

/* iOS Safe Area (notch/Dynamic Island/home indicator) */
@supports (padding-top: env(safe-area-inset-top)) {
  .header {
    padding-top: calc(16px + env(safe-area-inset-top));
  }

  .footer {
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }

  .login-gate {
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
      env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--color-bg);
  border-radius: 20px;
  border: none;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-neu-out);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 24px;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  padding: 32px;
}

.settings-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-section h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.settings-description {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.input-group input {
  width: 100%;
  background: var(--color-bg);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-neu-in);
}

.input-group input:focus {
  outline: none;
  box-shadow: var(--shadow-neu-in-deep);
  color: var(--color-neon-bright);
}

.input-group small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-dim);
}

.input-group small a {
  color: var(--color-purple);
  text-decoration: none;
}

.input-group small a:hover {
  text-decoration: underline;
}

.status-message {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.status-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-message.info {
  display: block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.quick-commands {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-commands code {
  background: var(--color-bg-tertiary);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 14px; /* Increased from 13px */
  border: 1px solid rgba(139, 92, 246, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-commands code:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--color-purple);
  transform: translateX(4px);
}

/* Developer Mode Toggle Switch */
.toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
  padding: 12px 0;
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 26px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 34px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background: #666;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
  background: rgba(34, 197, 94, 0.3);
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(24px);
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.toggle-text {
  color: var(--color-purple);
  font-size: 14px;
  font-weight: 500;
}

.toggle-label input[type="checkbox"]:checked ~ .toggle-text {
  color: #22c55e;
}

/* Locked state for API key input */
.input-group input[readonly] {
  background: rgba(139, 92, 246, 0.05);
  cursor: not-allowed;
  border-color: rgba(139, 92, 246, 0.2);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(139, 92, 246, 0.2);
}

/* ═══════════════════════════════════════════════
   AI Thinking Chain — Collapsible View
   ═══════════════════════════════════════════════ */

.thinking-chain {
  margin: 8px 0;
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 4px;
  background: rgba(0, 17, 0, 0.6);
  overflow: hidden;
}

.thinking-chain summary {
  cursor: pointer;
  padding: 8px 14px;
  color: #00cc88;
  font-size: 12px;
  font-family: "Courier New", monospace;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: all 0.2s ease;
  list-style: none;
}

.thinking-chain summary::-webkit-details-marker {
  display: none;
}

.thinking-chain summary::before {
  content: "▶";
  font-size: 10px;
  transition: transform 0.2s ease;
  color: #00ff00;
}

.thinking-chain[open] summary::before {
  transform: rotate(90deg);
}

.thinking-chain summary:hover {
  background: rgba(0, 255, 0, 0.05);
  color: #00ff00;
}

.thinking-steps {
  padding: 0 14px 12px;
  border-top: 1px solid rgba(0, 255, 0, 0.15);
}

.thinking-step {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 255, 0, 0.08);
  font-size: 12px;
  line-height: 1.5;
}

.thinking-step:last-child {
  border-bottom: none;
}

.thinking-step-title {
  color: #00ff88;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 12px;
}

.thinking-step-content {
  color: #00aa66;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  padding-left: 8px;
  border-left: 2px solid rgba(0, 255, 0, 0.2);
}

/* ═══════════════════════════════════════════════
   ASCII Splash Screen
   ═══════════════════════════════════════════════ */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.splash-content {
  text-align: center;
}

.ascii-art {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-neon-bright);
  text-shadow:
    0 0 10px rgba(16, 185, 129, 0.4),
    0 0 20px rgba(6, 182, 212, 0.2);
  white-space: pre;
  margin-bottom: 24px;
  min-height: 120px;
}

.splash-subtitle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text-dim);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 32px;
  min-height: 20px;
}

.splash-loader {
  width: 300px;
  height: 3px;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
  margin: 0 auto;
  overflow: hidden;
}

.loader-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--color-neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════
   Login Gate
   ═══════════════════════════════════════════════ */

.login-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 8, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card {
  text-align: center;
  padding: 48px;
  background: var(--color-bg);
  border: none;
  border-radius: 24px;
  box-shadow: var(--shadow-neu-out);
  max-width: 460px;
  width: 90%;
  animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-ascii {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.3;
  color: var(--color-neon-bright);
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  margin-bottom: 24px;
  text-align: center;
}

.login-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-dim);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.login-terminal {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--color-bg);
  border: none;
  box-shadow: var(--shadow-neu-in-deep);
  padding: 16px;
  margin-bottom: 32px;
  text-align: left;
  border-radius: 12px;
}

.login-prompt {
  color: var(--color-neon-bright);
  font-weight: bold;
  margin-right: 8px;
}

.login-typing {
  color: #e2e8f0;
}

.login-cursor {
  color: var(--color-neon-bright);
  animation: blink 1s infinite;
}

.discord-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: #5865f2;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
  margin-bottom: 16px;
}

.discord-login-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
}

.discord-login-btn svg {
  filter: none;
}

.login-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-text-dim);
  opacity: 0.8;
}

@keyframes glitch {
  0%,
  100% {
    opacity: 1;
  }
  33% {
    opacity: 0.8;
    transform: translateX(-2px);
  }
  66% {
    opacity: 0.9;
    transform: translateX(2px);
  }
}

/* ═══════════════════════════════════════════════
   Discord Auth Styles
   ═══════════════════════════════════════════════ */

.discord-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #5865f2;
  color: #ffffff;
  border: 2px solid #5865f2;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: none;
}

.discord-btn:hover {
  background: #4752c4;
  border-color: #7289da;
  box-shadow:
    0 0 15px rgba(88, 101, 242, 0.6),
    0 0 30px rgba(88, 101, 242, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}

.discord-btn .discord-icon {
  width: 20px;
  height: 20px;
  filter: none;
}

/* User Profile (logged in) */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--color-bg);
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-neu-in);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-neon-bright);
}

.user-name {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-signout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 8px;
  color: var(--color-warning);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-signout:hover {
  background: rgba(244, 63, 94, 0.2);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2);
}

.btn-signout svg {
  filter: none;
}

/* ═══════════════════════════════════════════════
   Arsenal Layout (App Interface)
   ═══════════════════════════════════════════════ */

/* Replaced Inline Styles */
.hidden-on-load {
  display: none;
}
.logo-custom {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.btn-icon-custom {
  width: 16px;
  height: 16px;
}
.forensics-icon-custom {
  margin-bottom: 15px;
  color: #8b5cf6;
}
.scanner-input-custom {
  height: 40px;
  border-radius: 4px;
}
.scanner-btn-custom {
  width: 100%;
}
.exploit-search-bar {
  gap: 10px;
  margin-bottom: 20px;
}
.exploit-input-custom {
  height: 40px;
  border-radius: 4px;
  flex-grow: 1;
}
.exploit-results-custom {
  height: 250px;
}

.arsenal-layout {
  display: flex;
  gap: 24px;
  background: var(--color-bg);
  border: none;
  border-radius: 24px;
  overflow: hidden;
  min-height: 700px;
  box-shadow: var(--shadow-neu-out-sm);
}

/* Sidebar */
.arsenal-sidebar {
  width: 240px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h3 {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 12px 8px;
  margin: 0;
  flex-grow: 1;
}

.sidebar-item {
  padding: 12px 14px;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 4px;
}

.sidebar-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  stroke-width: 2;
}

.sidebar-item:hover {
  background: var(--color-bg);
  color: var(--color-neon-bright);
  box-shadow: var(--shadow-neu-out-sm);
}

.sidebar-item:hover svg {
  opacity: 1;
  color: var(--color-neon-bright);
}

.sidebar-item.active {
  background: var(--color-bg);
  color: var(--color-neon-bright);
  box-shadow: var(--shadow-neu-in);
}

.sidebar-item.active svg {
  opacity: 1;
  color: var(--color-neon-bright);
}

/* Content Area */
.arsenal-content {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.arsenal-tab {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.arsenal-tab .demo-card {
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* AI Architect */
.architect-chat {
  flex-grow: 1;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  min-height: 350px;
  max-height: 500px;
  overflow-y: auto;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
}

.chat-message {
  margin-bottom: 16px;
  line-height: 1.6;
}

.chat-message.bot {
  color: var(--color-text);
}

.chat-message.bot strong {
  color: var(--color-neon-bright);
}

.chat-message.user {
  color: var(--color-text-secondary);
  text-align: right;
}

/* Forensics */
.forensics-upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-dim);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.forensics-upload-area:hover {
  border-color: var(--color-neon-bright);
  background: rgba(16, 185, 129, 0.05);
}

/* Reports Stats */
.report-stats {
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.stat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  flex: 1;
  text-align: center;
}

.stat-box h4 {
  color: var(--color-text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px 0;
  font-family: var(--font-sans);
}

.stat-box span {
  color: var(--color-neon-bright);
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Utility classes for layout */
.mt-2 {
  margin-top: 8px;
}
.mt-3 {
  margin-top: 12px;
}
.mt-4 {
  margin-top: 16px;
}
.mb-4 {
  margin-bottom: 16px;
}
.p-4 {
  padding: 16px;
}
.flex {
  display: flex;
}
.justify-between {
  justify-content: space-between;
}
