/* ═══════════════════════════════════════════════════════════════
   TRYCLAWCHAT - FUTURISTIC TECH THEME
   Cyberpunk AI Assistant Voice Interface
   ═══════════════════════════════════════════════════════════════ */

/* ──── FONT IMPORTS ──── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ──── FUTURISTIC THEME (default) ──── */
:root,
[data-theme="futuristic"] {
  /* Core Colors - Deep Space Background */
  --bg-deep: #000000;
  --bg-primary: #0a0e27;
  --bg-secondary: #0d1329;
  --bg-tertiary: #111838;

  /* Neon Accents */
  --neon-cyan: #00f0ff;
  --neon-purple: #a855f7;
  --neon-pink: #ff2370;
  --neon-green: #00ff88;
  --neon-blue: #3d9bff;

  /* Glassmorphism */
  --glass-bg: rgba(10, 14, 39, 0.7);
  --glass-border: rgba(0, 240, 255, 0.2);
  --glass-shadow: rgba(0, 240, 255, 0.15);

  /* Semantic Colors with Glow */
  --accent: var(--neon-cyan);
  --accent-glow: rgba(0, 240, 255, 0.6);
  --accent-soft: rgba(0, 240, 255, 0.1);

  --recording: var(--neon-pink);
  --recording-glow: rgba(255, 35, 112, 0.6);

  --speaking: var(--neon-green);
  --speaking-glow: rgba(0, 255, 136, 0.6);

  --processing: #ffaa00;
  --processing-glow: rgba(255, 170, 0, 0.6);

  /* Typography */
  --text-primary: #e0e8ff;
  --text-secondary: #a0b4d6;
  --text-muted: #5a6b8c;

  /* Message Bubbles */
  --msg-user-bg: rgba(0, 240, 255, 0.15);
  --msg-user-border: rgba(0, 240, 255, 0.4);
  --msg-bot-bg: rgba(168, 85, 247, 0.12);
  --msg-bot-border: rgba(168, 85, 247, 0.3);

  /* UI Elements */
  --border: rgba(0, 240, 255, 0.15);
  --input-bg: rgba(10, 14, 39, 0.8);
  --input-border: rgba(0, 240, 255, 0.3);
  --input-focus: rgba(0, 240, 255, 0.6);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #a855f7 100%);
  --gradient-secondary: linear-gradient(135deg, #0a0e27 0%, #1a1f4d 50%, #0a0e27 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
}

/* ──── GLOBAL STYLES ──── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg-deep);
}

body {
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  color: var(--text-primary);
  background: var(--bg-primary);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

/* ──── BACKGROUND EFFECTS ──── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 240, 255, 0.08) 0%,
    transparent 50%
  );
  animation: nebula-pulse 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes nebula-pulse {
  0%, 100% { opacity: 0.5; transform: translate(0, 0) scale(1); }
  50% { opacity: 1; transform: translate(-5%, -5%) scale(1.1); }
}

/* ──── APP SHELL ──── */
#app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "top-bar chat-main"
    "mic-area chat-main";
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  position: relative;
  z-index: 1;
}

/* ──── TOP BAR (Sidebar) ──── */
#top-bar {
  grid-area: top-bar;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

#top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--neon-cyan) 50%,
    transparent 100%
  );
  opacity: 0.5;
}

.brand-wrap {
  padding: 8px 12px;
  text-align: center;
  position: relative;
}

#top-bar h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px var(--accent-glow),
    0 0 20px var(--accent-glow),
    0 0 40px rgba(0, 240, 255, 0.3);
  margin: 0;
  text-transform: uppercase;
}

/* ──── BOT TABS ──── */
#bot-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 5px 8px 0 0;
  min-height: 0;
}

.bot-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 240, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.bot-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 240, 255, 0.1) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
}

.bot-tab:hover::before {
  left: 100%;
}

.bot-tab.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow:
    0 0 20px var(--accent-glow),
    inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.bot-tab .tab-avatar-emoji {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border);
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.bot-tab .tab-name {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.5px;
}

/* ──── BADGE ──── */
.bot-tab .badge {
  display: none;
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  text-align: center;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--neon-pink);
  box-shadow: 0 0 10px var(--recording-glow);
  animation: badge-pulse 2s ease-in-out infinite;
}

.bot-tab .badge.show {
  display: block;
}

@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 0 10px var(--recording-glow);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px var(--recording-glow);
    transform: scale(1.1);
  }
}

/* ──── TAB FLASH ANIMATION ──── */
@keyframes tab-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(0, 240, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

.bot-tab.flash {
  animation: tab-flash 0.6s ease-out 2;
}

/* ──── CHAT MAIN ──── */
#chat-main {
  grid-area: chat-main;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  box-shadow:
    0 8px 32px var(--glass-shadow),
    0 0 0 1px rgba(0, 240, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

#chat-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--neon-cyan) 50%,
    transparent 100%
  );
  opacity: 0.3;
}

/* ──── CHAT HEADER ──── */
#chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 39, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#chat-current-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--accent-glow);
  line-height: 1.1;
}

#status {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--neon-purple);
  min-height: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 560px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

#settings-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--neon-cyan);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

#settings-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* ──── CHAT WRAPPER & MESSAGES ──── */
#chat-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  min-height: 0;
  position: relative;
}

#chat-wrapper::-webkit-scrollbar {
  width: 6px;
}

#chat-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 240, 255, 0.05);
  border-radius: 3px;
}

#chat-wrapper::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 3px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ──── MESSAGE BUBBLES ──── */
.message {
  display: flex;
  margin-bottom: 12px;
  animation: message-appear 0.4s ease-out;
}

@keyframes message-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  justify-content: flex-end;
}

.message.bot {
  justify-content: flex-start;
}

.message-content {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid;
}

.message.user .message-content {
  background: var(--msg-user-bg);
  border-color: var(--msg-user-border);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.message.bot .message-content {
  background: var(--msg-bot-bg);
  border-color: var(--msg-bot-border);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

/* ──── MIC AREA (PTT Button) ──── */
#mic-area {
  grid-area: mic-area;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

#mic-area::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--neon-cyan) 50%,
    transparent 100%
  );
  opacity: 0.5;
}

#mic-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

#mic-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 2px solid var(--neon-cyan);
  color: var(--bg-deep);
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 30px var(--accent-glow),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

#mic-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}

#mic-btn:active::before {
  transform: translate(-50%, -50%) scale(1);
}

#mic-btn.recording {
  background: radial-gradient(circle, var(--neon-pink) 0%, #ff0055 100%);
  border-color: var(--neon-pink);
  box-shadow:
    0 0 40px var(--recording-glow),
    0 0 80px rgba(255, 35, 112, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  animation: recording-pulse 1.5s ease-in-out infinite;
}

@keyframes recording-pulse {
  0%, 100% {
    box-shadow:
      0 0 40px var(--recording-glow),
      0 0 80px rgba(255, 35, 112, 0.4),
      inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 60px var(--recording-glow),
      0 0 120px rgba(255, 35, 112, 0.6),
      inset 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

/* Voice Ripple Effect */
.voice-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  opacity: 0;
  animation: voice-ripple-expand 1.5s ease-out infinite;
  pointer-events: none;
}

@keyframes voice-ripple-expand {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* ──── SECONDARY BUTTONS ──── */
#ww-toggle,
#cancel-btn,
#auto-read-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--neon-cyan);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

#ww-toggle:hover,
#cancel-btn:hover,
#auto-read-toggle:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transform: scale(1.05);
}

/* ──── HINT TEXT ──── */
#hint {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

/* ──── TEXT INPUT AREA ──── */
#text-reply-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: rgba(10, 14, 39, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#text-reply-input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  outline: none;
  transition: all 0.3s ease;
}

#text-reply-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

#text-reply-send {
  background: var(--gradient-primary);
  border: 1px solid var(--neon-cyan);
  color: var(--bg-deep);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--accent-glow);
}

#text-reply-send:hover {
  box-shadow: 0 0 25px var(--accent-glow);
  transform: scale(1.05);
}

/* ──── SPLASH SCREEN ──── */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: splash-fade 0.6s ease-out 2s forwards;
}

@keyframes splash-fade {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

#splash-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

#splash-logo {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.lobster {
  font-size: 48px;
  animation: lobster-bounce 1s ease-in-out infinite;
  text-shadow: 0 0 30px var(--accent-glow);
}

.lobster:nth-child(2) {
  animation-delay: 0.2s;
}

.lobster:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes lobster-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

#splash-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--neon-cyan);
  text-shadow:
    0 0 20px var(--accent-glow),
    0 0 40px rgba(0, 240, 255, 0.4);
  text-transform: uppercase;
}

#splash-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--neon-purple);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* ──── TOAST NOTIFICATIONS ──── */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 12px 20px;
  color: var(--neon-cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  box-shadow:
    0 0 30px var(--accent-glow),
    inset 0 0 20px rgba(0, 240, 255, 0.1);
  z-index: 9000;
  display: none;
  text-transform: uppercase;
}

#toast.show {
  display: block;
  animation: toast-appear 0.4s ease-out;
}

@keyframes toast-appear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ──── SETTINGS PANEL ──── */
#settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: overlay-fade 0.3s ease-out;
}

@keyframes overlay-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#settings-overlay.show {
  display: flex;
}

#settings-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  width: calc(100% - 32px);
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow:
    0 20px 60px var(--glass-shadow),
    0 0 0 1px rgba(0, 240, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#settings-panel h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--accent-glow);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.setting-item {
  padding: 12px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}

.setting-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* ──── TOGGLE SWITCHES ──── */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .slider {
  transform: translateX(22px);
  background: var(--neon-cyan);
  box-shadow: 0 0 15px var(--accent-glow);
}

.toggle input:checked {
  background: rgba(0, 240, 255, 0.3);
  border-color: var(--neon-cyan);
}

/* ──── RESPONSIVE MOBILE ──── */
@media (max-width: 768px) {
  #app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "chat-main"
      "mic-area";
    padding: 8px;
    gap: 8px;
  }

  #top-bar {
    display: none;
  }

  #chat-main {
    border-radius: 12px;
  }

  #mic-area {
    border-radius: 12px;
    padding: 12px;
  }

  #mic-btn {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   END: FUTURISTIC TECH THEME
   ═══════════════════════════════════════════════════════════════ */
