  @import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Crimson+Pro:wght@300;400;500;600;700;800&family=Syne:wght@400;500;600;700;800&family=DM+Mono:wght@300;400;500&family=Playfair+Display:wght@400;500;700;900&family=Press+Start+2P&family=Bungee+Shade&family=Permanent+Marker&display=swap');

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

  body {
    font-family: 'Space Mono', monospace;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
  }

  .app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  /* Sidebar / Nav */
  .nav-bar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #111;
    border-bottom: 1px solid #222;
    gap: 14px;
    flex-shrink: 0;
  }

  .nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 18px; color: #ff4444;
    letter-spacing: -0.5px;
  }

  .nav-logo i { font-size: 16px; }
  .nav-sep { width: 1px; height: 20px; background: #333; }
  .nav-url {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 8px 14px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #666;
    display: flex; align-items: center; gap: 8px;
  }
  .nav-url i { color: #444; font-size: 10px; }
  .nav-url .url-text { color: #888; }
  .nav-url .url-path { color: #ff4444; }
  .nav-count {
    font-size: 10px; color: #555;
    font-family: 'DM Mono', monospace;
  }

  /* Main content */
  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Error page display area */
  .error-viewport {
    flex: 1;
    overflow-y: auto;
    position: relative;
  }

  .error-page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    animation: pageIn 0.5s ease;
  }

  @keyframes pageIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
  }

  /* Input bar at bottom */
  .input-bar {
    padding: 14px 20px;
    background: #111;
    border-top: 1px solid #222;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
  }

  .input-bar input {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 10px 14px;
    color: #e0e0e0;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
  }

  .input-bar input:focus { border-color: #ff4444; }
  .input-bar input::placeholder { color: #444; }

  .send-btn {
    background: #ff4444;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 12px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s;
  }

  .send-btn:hover { background: #ff5555; transform: translateY(-1px); }

  /* Loading indicator */
  .loading-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 20px;
    font-size: 14px;
    color: #666;
    font-family: 'DM Mono', monospace;
  }
  .loading-indicator.active { display: flex; }
  .spinner {
    width: 18px; height: 18px;
    border: 2px solid #333;
    border-top-color: #ff4444;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .typewriter-cursor {
    animation: cursorBlink 0.6s step-end infinite;
    color: #ff4444;
    font-weight: 300;
  }
  @keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

  /* Suggestion chips */
  .suggestions {
    display: flex;
    gap: 8px;
    padding: 0 20px 10px;
    background: #111;
    flex-wrap: wrap;
  }

  .chip {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    padding: 5px 12px;
    background: #1a1a1a;
    border: 1px solid #282828;
    border-radius: 14px;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
  }

  .chip:hover { border-color: #ff4444; color: #ff4444; }

  /* ========================================
     404 PAGE THEMES
     Each is a completely unique error page
     ======================================== */

  /* THEME: Welcome / Default */
  .theme-welcome {
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    min-height: 500px;
  }
  .theme-welcome .big-404 {
    font-family: 'Bungee Shade', cursive;
    font-size: 90px;
    color: #ff4444;
    line-height: 1;
    margin-bottom: 16px;
    text-shadow: 0 0 60px rgba(255,68,68,0.3);
  }
  .theme-welcome h2 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 12px;
  }
  .theme-welcome .desc {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: #555;
    max-width: 500px;
    line-height: 1.7;
  }

  /* THEME 1: Brutalist */
  .theme-brutalist {
    background: #f5f0e8;
    color: #111;
    padding: 40px;
    min-height: 500px;
  }
  .theme-brutalist .error-num {
    font-family: 'Syne', sans-serif;
    font-size: 160px;
    font-weight: 800;
    line-height: 0.85;
    color: #111;
    border-bottom: 8px solid #111;
    padding-bottom: 10px;
    margin-bottom: 24px;
  }
  .theme-brutalist .error-label {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #888;
    margin-bottom: 30px;
  }
  .theme-brutalist .bot-msg {
    font-family: 'Crimson Pro', serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    color: #333;
  }
  .theme-brutalist .stamp {
    position: absolute;
    top: 30px; right: 40px;
    border: 4px solid #ff4444;
    color: #ff4444;
    padding: 8px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    transform: rotate(12deg);
    letter-spacing: 3px;
  }

  /* THEME 2: Retro Terminal */
  .theme-terminal {
    background: #0c0c0c;
    padding: 30px;
    min-height: 500px;
    position: relative;
  }
  .theme-terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(transparent 0, transparent 2px, rgba(0,255,0,0.015) 2px, rgba(0,255,0,0.015) 4px);
    pointer-events: none;
  }
  .theme-terminal .term-line {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: #33ff33;
    line-height: 1.8;
    position: relative;
    z-index: 1;
  }
  .theme-terminal .term-line.dim { color: #1a7a1a; }
  .theme-terminal .term-line.error { color: #ff4444; }
  .theme-terminal .term-line.highlight { color: #ffff33; }
  .theme-terminal .cursor {
    display: inline-block;
    width: 8px; height: 16px;
    background: #33ff33;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
  }
  @keyframes blink { 50% { opacity: 0; } }

  /* THEME 3: Vaporwave */
  .theme-vapor {
    background: linear-gradient(180deg, #1a0033 0%, #0d001a 50%, #1a0033 100%);
    padding: 40px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .theme-vapor::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(255,0,128,0.08) 100%);
    pointer-events: none;
  }
  .theme-vapor .grid-bg {
    position: absolute;
    bottom: 0; left: -50%; right: -50%; height: 40%;
    background:
      linear-gradient(90deg, rgba(255,0,255,0.1) 1px, transparent 1px),
      linear-gradient(rgba(255,0,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(400px) rotateX(60deg);
    transform-origin: bottom;
  }
  .theme-vapor .vapor-404 {
    font-family: 'Syne', sans-serif;
    font-size: 100px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }
  .theme-vapor .vapor-sub {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #ff69b4;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative; z-index: 1;
  }
  .theme-vapor .vapor-msg {
    font-family: 'Crimson Pro', serif;
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    line-height: 1.7;
    position: relative; z-index: 1;
  }

  /* THEME 4: Newspaper */
  .theme-newspaper {
    background: #f8f4e8;
    color: #222;
    padding: 40px;
    min-height: 500px;
  }
  .theme-newspaper .masthead {
    text-align: center;
    border-bottom: 3px double #222;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }
  .theme-newspaper .masthead h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
  }
  .theme-newspaper .dateline {
    font-family: 'Crimson Pro', serif;
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .theme-newspaper .headline {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: center;
  }
  .theme-newspaper .byline {
    font-family: 'Crimson Pro', serif;
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
  }
  .theme-newspaper .article-body {
    font-family: 'Crimson Pro', serif;
    font-size: 17px;
    line-height: 1.7;
    column-count: 2;
    column-gap: 30px;
    column-rule: 1px solid #ddd;
    max-width: 700px;
    margin: 0 auto;
    color: #333;
  }

  /* THEME 5: Glitch */
  .theme-glitch {
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .theme-glitch .glitch-text {
    font-family: 'Syne', sans-serif;
    font-size: 120px;
    font-weight: 800;
    color: #fff;
    position: relative;
  }
  .theme-glitch .glitch-text::before,
  .theme-glitch .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }
  .theme-glitch .glitch-text::before {
    color: #ff0040;
    animation: glitch1 2s infinite;
    clip-path: inset(0 0 60% 0);
  }
  .theme-glitch .glitch-text::after {
    color: #00ffff;
    animation: glitch2 2s infinite;
    clip-path: inset(40% 0 0 0);
  }
  @keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -1px); }
    60% { transform: translate(-2px, 3px); }
    80% { transform: translate(2px, -2px); }
  }
  @keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -2px); }
    40% { transform: translate(-3px, 1px); }
    60% { transform: translate(2px, -3px); }
    80% { transform: translate(-2px, 2px); }
  }
  .theme-glitch .glitch-msg {
    font-family: 'DM Mono', monospace;
    font-size: 15px;
    color: #888;
    margin-top: 30px;
    max-width: 500px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
  }

  /* THEME 6: Minimalist Zen */
  .theme-zen {
    background: #fafaf8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px;
    text-align: center;
  }
  .theme-zen .zen-circle {
    width: 120px; height: 120px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
  }
  .theme-zen .zen-circle span {
    font-family: 'Crimson Pro', serif;
    font-size: 36px;
    font-weight: 300;
    color: #999;
  }
  .theme-zen .zen-msg {
    font-family: 'Crimson Pro', serif;
    font-size: 20px;
    font-weight: 300;
    color: #666;
    max-width: 440px;
    line-height: 1.8;
  }
  .theme-zen .zen-note {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #bbb;
    margin-top: 30px;
    letter-spacing: 2px;
  }

  /* THEME 7: Construction / Under Construction */
  .theme-construction {
    background: repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 20px, #222 20px, #222 40px);
    min-height: 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .theme-construction .caution-tape {
    background: repeating-linear-gradient(135deg, #ffcc00, #ffcc00 20px, #111 20px, #111 40px);
    padding: 10px 40px;
    margin-bottom: 30px;
    transform: rotate(-2deg);
  }
  .theme-construction .caution-tape span {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #111;
    letter-spacing: 4px;
  }
  .theme-construction .const-msg {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: #aaa;
    max-width: 500px;
    line-height: 1.7;
    background: rgba(0,0,0,0.5);
    padding: 24px;
    border: 2px dashed #444;
    border-radius: 8px;
  }
  .theme-construction .hard-hat {
    font-size: 50px;
    margin-bottom: 20px;
  }

  /* THEME 8: Space */
  .theme-space {
    background: radial-gradient(ellipse at center, #0a0a2e 0%, #000 70%);
    min-height: 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .theme-space .stars {
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(1px 1px at 20% 30%, #fff 100%, transparent),
      radial-gradient(1px 1px at 40% 70%, #fff 100%, transparent),
      radial-gradient(1px 1px at 60% 10%, #fff 100%, transparent),
      radial-gradient(1px 1px at 80% 50%, #fff 100%, transparent),
      radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.6) 100%, transparent),
      radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,0.6) 100%, transparent),
      radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.4) 100%, transparent),
      radial-gradient(2px 2px at 30% 60%, rgba(255,255,255,0.8) 100%, transparent),
      radial-gradient(1px 1px at 70% 90%, rgba(255,255,255,0.5) 100%, transparent),
      radial-gradient(1px 1px at 15% 45%, rgba(255,255,255,0.7) 100%, transparent);
    animation: twinkle 4s ease-in-out infinite alternate;
  }
  @keyframes twinkle { from { opacity: 0.6; } to { opacity: 1; } }
  .theme-space .space-404 {
    font-family: 'Syne', sans-serif;
    font-size: 80px;
    font-weight: 800;
    color: #fff;
    position: relative; z-index: 1;
    text-shadow: 0 0 40px rgba(100,100,255,0.5);
    margin-bottom: 10px;
  }
  .theme-space .space-sub {
    font-family: 'Crimson Pro', serif;
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative; z-index: 1;
  }
  .theme-space .space-msg {
    font-family: 'Crimson Pro', serif;
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    line-height: 1.7;
    position: relative; z-index: 1;
  }

  /* THEME 9: Blueprint / Architect */
  .theme-blueprint {
    background: #1a3a5c;
    min-height: 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-image:
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
  }
  .theme-blueprint .bp-title {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
  }
  .theme-blueprint .bp-num {
    font-family: 'Syne', sans-serif;
    font-size: 100px;
    font-weight: 800;
    color: rgba(255,255,255,0.12);
    line-height: 0.9;
    margin-bottom: 20px;
  }
  .theme-blueprint .bp-msg {
    font-family: 'Crimson Pro', serif;
    font-size: 18px;
    color: rgba(200,220,255,0.8);
    max-width: 550px;
    line-height: 1.7;
  }
  .theme-blueprint .bp-stamp {
    position: absolute;
    bottom: 30px; right: 40px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.15);
    text-align: right;
    line-height: 1.8;
  }

  /* THEME 10: Retro Game / Pixel */
  .theme-retrogame {
    background: #111;
    min-height: 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    image-rendering: pixelated;
  }
  .theme-retrogame .pixel-404 {
    font-family: 'Press Start 2P', cursive;
    font-size: 56px;
    color: #ff004d;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 #7e2553;
  }
  .theme-retrogame .pixel-sub {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #ffec27;
    letter-spacing: 2px;
    margin-bottom: 24px;
  }
  .theme-retrogame .pixel-box {
    border: 3px solid #29adff;
    padding: 20px 24px;
    max-width: 520px;
    background: rgba(29,173,255,0.08);
  }
  .theme-retrogame .pixel-msg {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    color: #fff1e8;
    line-height: 2.2;
    text-align: left;
  }
  .theme-retrogame .pixel-prompt {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #00e436;
    margin-top: 16px;
    animation: blink 1s step-end infinite;
  }

  /* THEME 11: Classified / Redacted Document */
  .theme-classified {
    background: #f5f0e0;
    min-height: 500px;
    padding: 50px 40px;
    color: #222;
    position: relative;
  }
  .theme-classified .classified-header {
    text-align: center;
    margin-bottom: 30px;
  }
  .theme-classified .classified-header h2 {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #cc0000;
    border: 3px solid #cc0000;
    display: inline-block;
    padding: 8px 20px;
    transform: rotate(-1deg);
  }
  .theme-classified .classified-meta {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.8;
  }
  .theme-classified .redacted {
    background: #222;
    color: #222;
    padding: 0 4px;
    border-radius: 2px;
    user-select: none;
  }
  .theme-classified .classified-body {
    font-family: 'Crimson Pro', serif;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    max-width: 600px;
  }
  .theme-classified .watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-family: 'Syne', sans-serif;
    font-size: 100px;
    font-weight: 800;
    color: rgba(200,0,0,0.04);
    letter-spacing: 10px;
    white-space: nowrap;
    pointer-events: none;
  }

  /* THEME 12: TV Static / Signal Lost */
  .theme-static {
    background: #0a0a0a;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
  }
  .theme-static .static-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.4;
    animation: staticFlicker 0.1s steps(3) infinite;
  }
  @keyframes staticFlicker {
    0% { transform: translate(0,0); }
    33% { transform: translate(-1px,1px); }
    66% { transform: translate(1px,-1px); }
    100% { transform: translate(0,0); }
  }
  .theme-static .static-text {
    font-family: 'Syne', sans-serif;
    font-size: 60px;
    font-weight: 800;
    color: #fff;
    position: relative; z-index: 1;
    text-shadow: 2px 0 #ff0040, -2px 0 #00ffff;
    margin-bottom: 10px;
  }
  .theme-static .static-sub {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #666;
    letter-spacing: 4px;
    margin-bottom: 24px;
    position: relative; z-index: 1;
  }
  .theme-static .static-msg {
    font-family: 'Crimson Pro', serif;
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    line-height: 1.7;
    position: relative; z-index: 1;
    background: rgba(0,0,0,0.6);
    padding: 20px;
    border: 1px solid #333;
  }

  /* THEME 13: Art Deco */
  .theme-deco {
    background: #1a1a2e;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    position: relative;
  }
  .theme-deco .deco-border {
    position: absolute;
    inset: 16px;
    border: 2px solid rgba(212,175,55,0.3);
    pointer-events: none;
  }
  .theme-deco .deco-border::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(212,175,55,0.15);
  }
  .theme-deco .deco-ornament {
    font-size: 28px;
    color: #d4af37;
    margin-bottom: 16px;
    letter-spacing: 12px;
  }
  .theme-deco .deco-404 {
    font-family: 'Playfair Display', serif;
    font-size: 90px;
    font-weight: 900;
    color: #d4af37;
    letter-spacing: 12px;
    margin-bottom: 8px;
  }
  .theme-deco .deco-sub {
    font-family: 'Crimson Pro', serif;
    font-size: 14px;
    color: rgba(212,175,55,0.5);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 30px;
  }
  .theme-deco .deco-msg {
    font-family: 'Crimson Pro', serif;
    font-size: 19px;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    line-height: 1.8;
  }

  /* THEME 14: Comic Book */
  .theme-comic {
    background: #fff8dc;
    min-height: 500px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: radial-gradient(circle, #ddd 1px, transparent 1px);
    background-size: 6px 6px;
  }
  .theme-comic .comic-burst {
    position: relative;
    background: #ff4444;
    color: #fff;
    font-family: 'Permanent Marker', cursive;
    font-size: 64px;
    padding: 30px 50px;
    transform: rotate(-3deg);
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 4px 4px 0 #000;
    border: 3px solid #000;
  }
  .theme-comic .comic-query {
    font-family: 'Permanent Marker', cursive;
    font-size: 16px;
    color: #222;
    margin-bottom: 20px;
    transform: rotate(1deg);
  }
  .theme-comic .speech-bubble {
    position: relative;
    background: #fff;
    border: 3px solid #222;
    border-radius: 20px;
    padding: 20px 28px;
    max-width: 520px;
    box-shadow: 3px 3px 0 #000;
  }
  .theme-comic .speech-bubble::after {
    content: '';
    position: absolute;
    top: -20px; left: 40px;
    border: 10px solid transparent;
    border-bottom-color: #222;
  }
  .theme-comic .speech-bubble .comic-msg {
    font-family: 'Crimson Pro', serif;
    font-size: 17px;
    line-height: 1.6;
    color: #222;
  }

  /* THEME 15: Matrix Rain */
  .theme-matrix {
    background: #000;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .theme-matrix .matrix-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .theme-matrix .rain-col {
    position: absolute;
    top: -100%;
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: #00ff41;
    writing-mode: vertical-rl;
    animation: matrixFall linear infinite;
    opacity: 0.3;
    letter-spacing: 8px;
  }
  @keyframes matrixFall {
    from { transform: translateY(-100%); }
    to { transform: translateY(200vh); }
  }
  .theme-matrix .matrix-404 {
    font-family: 'DM Mono', monospace;
    font-size: 80px;
    font-weight: 700;
    color: #00ff41;
    text-shadow: 0 0 30px rgba(0,255,65,0.5);
    position: relative; z-index: 1;
    margin-bottom: 10px;
  }
  .theme-matrix .matrix-sub {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #00aa2a;
    letter-spacing: 4px;
    margin-bottom: 24px;
    position: relative; z-index: 1;
  }
  .theme-matrix .matrix-msg {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: #00ff41;
    max-width: 480px;
    line-height: 1.7;
    position: relative; z-index: 1;
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border: 1px solid #00aa2a;
  }

  /* THEME 16: Windows BSOD */
  .theme-bsod {
    background: #0078d7;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
  }
  .theme-bsod .bsod-face {
    font-size: 100px;
    color: #fff;
    margin-bottom: 20px;
  }
  .theme-bsod .bsod-title {
    font-family: 'Segoe UI', 'Outfit', sans-serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 16px;
  }
  .theme-bsod .bsod-body {
    font-family: 'Segoe UI', 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    max-width: 560px;
  }
  .theme-bsod .bsod-pct {
    font-family: 'Segoe UI', 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 24px;
  }
  .theme-bsod .bsod-code {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 20px;
  }

  /* ========================================
     THEME 17: MINIMALIST (light)
     Clean white, lots of space, thin lines
  ======================================== */
  .theme-minimalist {
    background: #fafafa;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 60px 40px;
    text-align: center;
  }
  .theme-minimalist .mini-num {
    font-family: 'Outfit', 'Crimson Pro', serif;
    font-size: 120px;
    font-weight: 200;
    letter-spacing: -6px;
    color: #111;
    line-height: 1;
  }
  .theme-minimalist .mini-line {
    width: 40px;
    height: 1px;
    background: #ccc;
    margin: 24px auto;
  }
  .theme-minimalist .mini-query {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
  }
  .theme-minimalist .mini-response {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 20px;
    line-height: 1.7;
    color: #333;
    max-width: 500px;
  }
  .theme-minimalist .mini-footer {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: #bbb;
    margin-top: 40px;
    letter-spacing: 3px;
    text-transform: lowercase;
  }

  /* ========================================
     THEME 18: PASTEL (light)
     Soft colors, rounded, playful blob
  ======================================== */
  .theme-pastel {
    background: #fef9f4;
    color: #3d3d3d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .theme-pastel .pastel-blob {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--pastel-accent, #e8a0bf);
    opacity: 0.15;
    filter: blur(40px);
  }
  .theme-pastel .pastel-404 {
    font-family: 'Syne', sans-serif;
    font-size: 80px;
    font-weight: 800;
    color: var(--pastel-accent, #e8a0bf);
    line-height: 1;
    position: relative;
    z-index: 1;
  }
  .theme-pastel .pastel-oops {
    font-family: 'Permanent Marker', cursive;
    font-size: 28px;
    color: var(--pastel-accent, #e8a0bf);
    margin: 4px 0 20px;
    position: relative;
    z-index: 1;
  }
  .theme-pastel .pastel-query {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }
  .theme-pastel .pastel-query em {
    color: #666;
    font-style: italic;
  }
  .theme-pastel .pastel-msg {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    max-width: 480px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 24px 28px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
  }
  .theme-pastel .pastel-footer {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #bbb;
    margin-top: 28px;
    position: relative;
    z-index: 1;
  }

  @media (max-width: 640px) {
    .theme-newspaper .article-body { column-count: 1; }
    .theme-brutalist .error-num { font-size: 80px; }
    .theme-vapor .vapor-404 { font-size: 60px; }
    .theme-glitch .glitch-text { font-size: 70px; }
    .theme-welcome .big-404 { font-size: 60px; }
    .theme-retrogame .pixel-404 { font-size: 36px; }
    .theme-retrogame .pixel-msg { font-size: 8px; }
    .theme-deco .deco-404 { font-size: 60px; }
    .theme-comic .comic-burst { font-size: 42px; padding: 20px 30px; }
    .theme-bsod { padding: 30px; }
    .theme-minimalist .mini-num { font-size: 80px; }
    .theme-pastel .pastel-404 { font-size: 56px; }
    .suggestions { padding: 0 12px 8px; gap: 5px; }
    .chip { font-size: 10px; padding: 4px 9px; }
    .nav-url { display: none; }
  }

  .error-viewport::-webkit-scrollbar { width: 6px; }
  .error-viewport::-webkit-scrollbar-track { background: #111; }
  .error-viewport::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
