:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --muted: #6b7280;
  --accent: #0ea5e9;
  --neon-bg-start: #001428;
  --neon-bg-end: #000010;
}

/* Galaxy Background */
body {
  background: url('https://images.unsplash.com/photo-1470770841072-f978cf4d019e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
  background-size: cover;
  color: #e6f7ff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
  height: 100vh;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Header */
header {
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(90deg, #052a46, #0b6fbf);
  padding: 14px 18px;
  border-radius: 10px;
  color: #dff9ff;
  box-shadow: 0 10px 30px rgba(3, 102, 214, 0.15);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1de9ff, #6a7cff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #001;
  font-weight: 700;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #001;
}

.app {
  width: 100%;
  max-width: 1100px;
  margin-top: 18px;
  display: flex;
  gap: 18px;
  flex-direction: column;
  flex: 1;
  height: calc(100% - 90px);
}

.panels {
  display: flex;
  gap: 18px;
  flex: 1;
  overflow: hidden;
}

/* Panels with glowing borders */
.left,
.right {
  border: 2px solid rgba(29, 233, 255, 0.6);
  box-shadow: 0 0 15px rgba(29, 233, 255, 0.8), 0 0 30px rgba(29, 233, 255, 0.6);
  animation: glow 2.5s infinite alternate;
  background: rgba(0, 0, 10, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 12px;
}

/* Glow animation */
@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(29, 233, 255, 0.6), 0 0 20px rgba(29, 233, 255, 0.4);
    border-color: rgba(29, 233, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(29, 233, 255, 1), 0 0 40px rgba(29, 233, 255, 0.7);
    border-color: rgba(29, 233, 255, 0.8);
  }
}

.left {
  width: 320px;
  padding: 14px;
  color: #dff9ff;
  flex-shrink: 0;
  overflow-y: auto;
}

.left h3 {
  margin: 6px 0 8px 0;
}

.left .label {
  font-size: 13px;
  color: #bfefff;
  margin-top: 8px;
}

.left input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  color: #e6f7ff;
}

.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
  background: #052a46;
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 10, 0.3), transparent);
  display: flex;
  flex-direction: column;
}

.msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  max-width: 85%;
}

.msg.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #1de9ff, #6a7cff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #001;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(29, 233, 255, 0.06);
}

.bubble {
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.user .bubble {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(29, 233, 255, 0.06);
  color: #dff9ff;
}

.msg.ai .bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(29, 233, 255, 0.06);
  color: #dff9ff;
}

.composer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  align-items: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 10, 0.3));
  flex-shrink: 0;
}

textarea#composer {
  flex: 1;
  min-height: 48px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.28);
  color: #e6f7ff;
  resize: none;
  font-family: Inter, system-ui;
}

.btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #0ea5e9, #6a7cff);
  color: #001;
  font-weight: 700;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #dff9ff;
}

.btn.circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing {
  font-style: italic;
  color: #bfefff;
  margin: 8px 0;
  text-align: center;
}

.small {
  font-size: 13px;
  color: #bfefff;
}

@media (max-width: 980px) {
  .panels {
    flex-direction: column;
  }
  .left {
    width: 100%;
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 10px;
  border: 3px solid rgba(29, 233, 255, 0.6);
  box-shadow: 0 0 20px rgba(29, 233, 255, 0.8), 0 0 40px rgba(29, 233, 255, 0.6), 0 0 60px rgba(29, 233, 255, 0.4);
  transition: box-shadow 0.3s ease-in-out;
}

.video-container:hover {
  box-shadow: 0 0 30px rgba(29, 233, 255, 1), 0 0 50px rgba(29, 233, 255, 0.8), 0 0 80px rgba(29, 233, 255, 0.6);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

#top-banner {
  background: linear-gradient(135deg, rgba(0,20,40,0.9), rgba(0,0,20,0.9));
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  margin: 12px 0;
  border: 2px solid rgba(29, 233, 255, 0.6);
  box-shadow: 0 0 20px rgba(29, 233, 255, 0.8);
}

.blinkGlow {
  font-family: 'Orbitron', sans-serif;
  color: #00f0ff;
  font-size: 18px;
  text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff, 0 0 20px #00f0ff;
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff; }
  to { text-shadow: 0 0 20px #00f0ff, 0 0 30px #00f0ff; }
}

.contributor-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.contributor-list a {
  text-align: center;
  color: #bfefff;
  text-decoration: none;
  font-size: 12px;
}

.contributor-list img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(29, 233, 255, 0.6);
  box-shadow: 0 0 10px rgba(29, 233, 255, 0.5);
}

.contributor-name {
  margin-top: 4px;
  font-size: 12px;
}

@keyframes micGlow {
  0% { box-shadow: 0 0 10px #0ea5e9; }
  50% { box-shadow: 0 0 20px #6a7cff; }
  100% { box-shadow: 0 0 10px #0ea5e9; }
}

.btn.mic-active {
  animation: micGlow 1s infinite alternate;
  color: #0ea5e9;
}
