body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', monospace;
  background: #2E3440;
  color: #88C0D0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Scanline effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1000;
}

/* CRT flicker */
@keyframes flicker {
  0% { opacity: 0.97; }
  50% { opacity: 1; }
  100% { opacity: 0.97; }
}

.app {
  min-height: 100vh;
  background: #0a0e27;
  animation: flicker 0.15s infinite;
}

.screen {
  min-height: 100vh;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Matrix background effect */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

@keyframes matrix-fall {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.matrix-column {
  position: absolute;
  top: -100%;
  font-size: 18px;
  color: #A3BE8C;
  animation: matrix-fall linear infinite;
  white-space: nowrap;
}

/* Home Screen */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  background: #1a1f3a;
  border: 2px solid #A3BE8C;
  padding: 10px 20px;
  box-shadow: 0 0 20px rgba(163, 190, 140, 0.3);
  position: relative;
  z-index: 1;
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #A3BE8C;
}

.terminal-btn.red { background: #BF616A; border-color: #BF616A; }
.terminal-btn.yellow { background: #EBCB8B; border-color: #EBCB8B; }
.terminal-btn.green { background: #A3BE8C; }

.terminal-title {
  font-size: 14px;
  color: #A3BE8C;
  flex: 1;
  text-align: center;
}

.start-chat-btn {
  background: #000;
  color: #A3BE8C;
  border: 2px solid #A3BE8C;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

.start-chat-btn:hover {
  background: #A3BE8C;
  color: #000;
  box-shadow: 0 0 15px #A3BE8C;
}

.hero {
  text-align: center;
  padding: 20px 20px;
  position: relative;
  z-index: 1;
}

/* ASCII Art */
.ascii-art {
  color: #A3BE8C;
  font-size: 10px;
  line-height: 8px;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 5px #A3BE8C;
  white-space: pre;
  overflow-x: auto;
}

/* Glitch effect on title */
/* @keyframes glitch {
  0% {
    text-shadow: 2px 2px #B48EAD, -2px -2px #88C0D0;
  }
  25% {
    text-shadow: -2px 2px #B48EAD, 2px -2px #88C0D0;
  }
  50% {
    text-shadow: 2px -2px #B48EAD, -2px 2px #88C0D0;
  }
  75% {
    text-shadow: -2px -2px #B48EAD, 2px 2px #88C0D0;
  }
  100% {
    text-shadow: 2px 2px #B48EAD, -2px -2px #88C0D0;
  }
} */

.title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
  color: #A3BE8C;
  /* animation: glitch 3s infinite; */
  letter-spacing: 3px;
}

.subtitle {
  font-size: 18px;
  color: #8FBCBB;
  margin: 0 0 30px 0;
}

.command-line {
  color: #A3BE8C;
  margin-bottom: 8px;
  font-size: 18px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.prompt {
  color: #B48EAD;
}

.status-ok {
  color: #8FBCBB;
}

/* Input Section */
.input-container {
  margin: 0px auto;
  padding: 20px;
  border: 1px dashed #A3BE8C;
  background: rgba(163, 190, 140, 0.05);
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.input-label {
  color: #A3BE8C;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
}

.username-input {
  width: 100%;
  padding: 12px 15px;
  background: #000;
  border: 2px solid #A3BE8C;
  color: #A3BE8C;
  font-size: 18px;
  font-family: 'Courier New', monospace;
  outline: none;
  box-shadow: inset 0 0 10px rgba(163, 190, 140, 0.2);
}

.username-input::placeholder {
  color: #8FBCBB;
}

.username-input:focus {
  box-shadow: 0 0 15px rgba(163, 190, 140, 0.5);
}

.input-hint {
  margin-top: 8px;
  font-size: 15px;
  color: #8FBCBB;
}

/* CTA Button */
.cta-button {
  background: #000;
  border: 2px solid #A3BE8C;
  color: #A3BE8C;
  padding: 15px 40px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 20px auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.cta-button:hover:not(:disabled) {
  background: #A3BE8C;
  color: #000;
  box-shadow: 0 0 20px #A3BE8C;
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.start-chat-btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(163, 190, 140, 0.3);
  border-top-color: #A3BE8C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Info Box */
.info-box {
  border: 1px solid #A3BE8C;
  padding: 20px;
  margin: 30px auto;
  background: rgba(163, 190, 140, 0.05);
  max-width: 600px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.info-line {
  margin: 8px 0;
  font-size: 14px;
  color: #8FBCBB;
}

/* How it works section */
.how-it-works {
  margin: 40px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #A3BE8C;
  margin-bottom: 40px;
}

.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.feature {
  flex: 0 1 200px;
  border: 1px solid #A3BE8C;
  padding: 20px;
  background: rgba(163, 190, 140, 0.03);
  transition: all 0.3s;
}

.feature:hover {
  background: rgba(163, 190, 140, 0.1);
  box-shadow: 0 0 15px rgba(163, 190, 140, 0.3);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 15px;
  color: #A3BE8C;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #A3BE8C;
}

.feature-desc {
  font-size: 15px;
  color: #8FBCBB;
  line-height: 1.6;
}

/* Premium section */
.premium-section {
  margin: 80px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.plans {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.plan {
  background: rgba(163, 190, 140, 0.05);
  border: 1px solid #A3BE8C;
  padding: 30px;
  flex: 0 1 280px;
  transition: all 0.3s;
}

.plan:hover {
  background: rgba(163, 190, 140, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(163, 190, 140, 0.3);
}

.plan-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #A3BE8C;
}

.plan-description {
  color: #8FBCBB;
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px dashed #A3BE8C;
  position: relative;
  z-index: 1;
}

.footer-links {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-link {
  color: #8FBCBB;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #A3BE8C;
}

.separator {
  color: #A3BE8C;
}

.footer-copyright {
  margin-top: 15px;
  font-size: 15px;
  color: #8FBCBB;
  opacity: 0.7;
}

/* Blinking cursor */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.cursor {
  animation: blink 1s infinite;
  color: #A3BE8C;
}

/* Chat Screen Styles remain same... */
.chat-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0;
  max-width: 100%;
}

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

.back-button {
  background: none;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
  transition: opacity 0.3s;
}

.back-button:hover {
  opacity: 0.7;
}

.chat-header-info {
  flex: 1;
  text-align: center;
}

.chat-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.chat-subtitle {
  font-size: 18px;
  color: #8B9AAE;
  margin: 4px 0 0 0;
}

.connection-badge {
  color: #4ade80;
  font-weight: 600;
}

.skip-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.skip-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.skip-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Searching State */
.searching-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.searching-animation {
  margin-bottom: 30px;
}

.searching-text {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px 0;
  text-align: center;
}

.searching-subtext {
  font-size: 16px;
  color: #8B9AAE;
  margin: 0;
  text-align: center;
}

/* Chat Container */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-wrapper {
  display: flex;
  width: 100%;
}

.message-wrapper.me {
  justify-content: flex-end;
}

.message-wrapper.them {
  justify-content: flex-start;
}

.message {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  position: relative;
}

.message.me {
  background: #4F6FFF;
  color: white;
  border-bottom-right-radius: 4px;
}

.message.them {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-bottom-left-radius: 4px;
}

.message-text {
  margin: 0 0 4px 0;
  word-wrap: break-word;
  line-height: 1.4;
}

.message-time {
  font-size: 15px;
  opacity: 0.7;
}

.message-system {
  text-align: center;
  padding: 8px;
}

.message-system-text {
  font-size: 18px;
  color: #8B9AAE;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 12px;
  display: inline-block;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Chat Input */
.chat-input-container {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: white;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  outline: none;
}

.chat-input::placeholder {
  color: #8B9AAE;
}

.chat-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #4F6FFF;
}

.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4F6FFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
  background: #3D5FEE;
  transform: scale(1.05);
}

.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Chat Footer */
.chat-footer {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-action-button {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s;
}

.footer-action-button:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
}

.action-button-new-user {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s;
}

.action-button-new-user:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
}

.privacy-text {
  color: #8B9AAE;
  font-size: 13px;
  margin: 0;
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .title {
    font-size: 24px;
  }

  .ascii-art {
    font-size: 6px;
    line-height: 6px;
  }
  
  .features {
    gap: 20px;
  }
  
  .plans {
    gap: 20px;
  }
  
  .message {
    max-width: 85%;
  }
  
  .chat-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .chat-header-info {
    order: 3;
    width: 100%;
  }
  
  .skip-button {
    order: 2;
  }
  
  .chat-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* Terminal Chat Screen Styles */

.chat-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0;
  max-width: 100%;
  background: #0a0e27;
}

/* Terminal Header Bar */
.terminal-header {
  background: #1a1f3a;
  border-bottom: 2px solid #A3BE8C;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(163, 190, 140, 0.3);
  position: relative;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.session-info {
  font-size: 14px;
  color: #A3BE8C;
  font-family: 'Courier New', monospace;
}

.prompt-text {
  color: #B48EAD;
}

.session-id {
  color: #88C0D0;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #A3BE8C;
  font-family: 'Courier New', monospace;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A3BE8C;
  animation: pulse 2s infinite;
}

.status-indicator.searching {
  background: #EBCB8B;
  animation: pulse-fast 1s infinite;
}

.status-indicator.idle {
  background: #BF616A;
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 5px #A3BE8C; }
  50% { opacity: 0.5; box-shadow: 0 0 10px #A3BE8C; }
}

@keyframes pulse-fast {
  0%, 100% { opacity: 1; box-shadow: 0 0 5px #EBCB8B; }
  50% { opacity: 0.5; box-shadow: 0 0 10px #EBCB8B; }
}

.header-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  background: none;
  border: 1px solid #A3BE8C;
  color: #A3BE8C;
  padding: 6px 12px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.action-btn:hover {
  background: #A3BE8C;
  color: #000;
}

.action-btn svg {
  stroke: currentColor;
}

.end-btn {
  border-color: #BF616A;
  color: #BF616A;
}

.end-btn:hover {
  background: #BF616A;
  color: #fff;
}

/* Status Bar */
.status-bar {
  background: rgba(163, 190, 140, 0.1);
  border-bottom: 1px solid #A3BE8C;
  padding: 8px 20px;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Courier New', monospace;
  color: #8FBCBB;
  position: relative;
  z-index: 9;
}

.status-left {
  flex: 1;
}

.status-right {
  display: flex;
  gap: 20px;
}

.highlight-magenta {
  color: #B48EAD;
  font-weight: bold;
}

.highlight-green {
  color: #A3BE8C;
  font-weight: bold;
}

/* Main Chat Area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0a0e27;
  position: relative;
}

/* Searching Screen */
.searching-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.searching-animation-terminal {
  font-size: 48px;
  color: #A3BE8C;
  margin-bottom: 20px;
  animation: spin 2s linear infinite;
  font-family: 'Courier New', monospace;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.disconnected-icon {
  font-size: 48px;
  color: #BF616A;
  margin-bottom: 20px;
  font-family: 'Courier New', monospace;
}

.searching-text-terminal {
  font-size: 18px;
  color: #A3BE8C;
  margin-bottom: 10px;
  text-align: center;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.searching-subtext-terminal {
  font-size: 14px;
  color: #8FBCBB;
  text-align: center;
  font-family: 'Courier New', monospace;
  margin-bottom: 20px;
}

.scanning-lines {
  margin-top: 30px;
  width: 100%;
  max-width: 500px;
}

.scan-line {
  margin: 5px 0;
  font-size: 15px;
  color: #8FBCBB;
  font-family: 'Courier New', monospace;
}

.terminal-button-new-user {
  background: #000;
  border: 2px solid #A3BE8C;
  color: #A3BE8C;
  padding: 12px 30px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0;
}

.terminal-button-new-user:hover {
  background: #A3BE8C;
  color: #000;
  box-shadow: 0 0 15px #A3BE8C;
}

/* Messages Container */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message-group {
  display: flex;
  gap: 2px;
  width: 100%;
}

.message-group.me {
  justify-content: flex-end;
}

.message-group.them {
  justify-content: flex-start;
}

.message {
  max-width: 70%;
  padding: 10px 15px;
  border: 1px solid #A3BE8C;
  background: rgba(163, 190, 140, 0.05);
  position: relative;
  font-size: 13px;
  line-height: 1.5;
  font-family: 'Courier New', monospace;
  color: #A3BE8C;
}

.message.me {
  border-color: #B48EAD;
  background: rgba(255, 0, 255, 0.05);
  color: #B48EAD;
  text-align: right;
}

.message.me::before {
  content: "> ";
  color: #B48EAD;
}

.message.them {
  border-color: #A3BE8C;
  background: rgba(163, 190, 140, 0.05);
  color: #A3BE8C;
}

.message.them::before {
  content: "< ";
  color: #A3BE8C;
}

.message-time {
  font-size: 9px;
  opacity: 0.7;
  margin-top: 4px;
  display: block;
}

.system-message {
  text-align: center;
  color: #8FBCBB;
  font-size: 15px;
  padding: 8px;
  border-top: 1px dashed #A3BE8C;
  border-bottom: 1px dashed #A3BE8C;
  background: rgba(163, 190, 140, 0.03);
  margin: 10px 0;
  font-family: 'Courier New', monospace;
}

/* Typing Indicator */
.typing-indicator-terminal {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8FBCBB;
  font-size: 15px;
  padding: 10px 15px;
  font-family: 'Courier New', monospace;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 4px;
  height: 4px;
  background: #A3BE8C;
  border-radius: 50%;
  animation: typing-terminal 1.4s infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-terminal {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* Input Area */
.input-container-terminal {
  border-top: 2px solid #A3BE8C;
  background: #1a1f3a;
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(163, 190, 140, 0.3);
}

.input-wrapper-terminal {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-prompt {
  color: #B48EAD;
  font-size: 18px;
  flex-shrink: 0;
  font-family: 'Courier New', monospace;
}

.message-input-terminal {
  flex: 1;
  background: #000;
  border: 1px solid #A3BE8C;
  color: #A3BE8C;
  padding: 12px 15px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 0 10px rgba(163, 190, 140, 0.2);
}

.message-input-terminal::placeholder {
  color: #8FBCBB;
}

.message-input-terminal:focus {
  box-shadow: 0 0 15px rgba(163, 190, 140, 0.5);
}

.message-input-terminal:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send-btn-terminal {
  background: #000;
  border: 2px solid #A3BE8C;
  color: #A3BE8C;
  padding: 12px 25px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.send-btn-terminal:hover:not(:disabled) {
  background: #A3BE8C;
  color: #000;
  box-shadow: 0 0 15px #A3BE8C;
}

.send-btn-terminal:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.input-info-terminal {
  margin-top: 8px;
  font-size: 10px;
  color: #8FBCBB;
  display: flex;
  justify-content: space-between;
  font-family: 'Courier New', monospace;
}

/* Footer */
.chat-footer-terminal {
  padding: 12px 20px;
  background: rgba(163, 190, 140, 0.05);
  border-top: 1px solid #A3BE8C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.skip-button-terminal {
  background: none;
  border: 1px solid #A3BE8C;
  color: #A3BE8C;
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.skip-button-terminal:hover:not(:disabled) {
  background: #A3BE8C;
  color: #000;
}

.skip-button-terminal:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #8FBCBB;
  color: #8FBCBB;
}

.privacy-text-terminal {
  color: #8FBCBB;
  font-size: 15px;
  margin: 0;
  font-family: 'Courier New', monospace;
}

/* Scrollbar for messages */
.messages-container::-webkit-scrollbar {
  width: 10px;
}

.messages-container::-webkit-scrollbar-track {
  background: #000;
  border-left: 1px solid #A3BE8C;
}

.messages-container::-webkit-scrollbar-thumb {
  background: #A3BE8C;
  border: 2px solid #000;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: #8FBCBB;
}

/* Responsive */
@media (max-width: 768px) {
  .terminal-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-left,
  .connection-status,
  .header-actions {
    flex: 1 1 100%;
    justify-content: center;
  }

  .message {
    max-width: 85%;
    font-size: 14px;
  }

  .input-wrapper-terminal {
    flex-direction: column;
    align-items: stretch;
  }

  .input-prompt {
    text-align: center;
  }

  .send-btn-terminal {
    width: 100%;
  }

  .chat-footer-terminal {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .status-bar {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
}

/* Vibe / Interests section above input */
.vibe-section-terminal {
  max-width: 500px;
  margin: 10px auto;
  padding: 10px 0 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vibe-label-terminal {
  text-align: center;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8FBCBB;
  opacity: 0.85;
}

.vibe-chips-terminal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Hide native checkbox */
.vibe-chip-terminal input {
  display: none;
}

/* Chip base style (rounded oval) */
.vibe-chip-terminal {
  cursor: pointer;
}

.vibe-chip-terminal span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px; /* pill / oval */
  border: 1px solid rgba(143, 188, 187, 0.45); /* #8FBCBB */
  background: rgba(15, 23, 42, 0.9); /* dark, hacker-ish */
  font-size: 12px;
  color: #d8dee9;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

/* Hover: subtle glow */
.vibe-chip-terminal span:hover {
  border-color: #88C0D0; /* cyan accent */
  box-shadow: 0 0 8px rgba(136, 192, 208, 0.25);
}

/* Selected state */
.vibe-chip-terminal input:checked + span {
  background: rgba(163, 190, 140, 0.15);          /* soft green fill */
  border-color: #A3BE8C;
  color: #A3BE8C;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(163, 190, 140, 0.35);
}


.terminal-error-popup {
  margin-top: 10px;
  background: rgba(191, 97, 106, 0.15);  /* soft red */
  border: 1px solid #BF616A;
  padding: 10px 15px;
  color: #BF616A;
  font-family: 'Courier New', monospace;
  text-align: center;
  border-radius: 4px;
  animation: blinkError 1.2s infinite;
}

@keyframes blinkError {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.faq-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  font-family: 'Courier New', monospace;
  color: #D8DEE9;
}

.faq-title {
  text-align: center;
  color: #A3BE8C;
  letter-spacing: 3px;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-size: 20px;
  text-shadow: 0 0 6px rgba(163,190,140,0.4);
}

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

.faq-item {
  border: 1px solid rgba(163, 190, 140, 0.35);
  background: rgba(163, 190, 140, 0.05);
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #A3BE8C;
  box-shadow: 0 0 10px rgba(163, 190, 140, 0.25);
}

.faq-question {
  font-size: 15px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #8FBCBB;
}

.caret {
  color: #88C0D0;
  font-weight: bold;
  width: 18px;
}

.faq-answer {
  margin-top: 10px;
  color: #D8DEE9;
  font-size: 14px;
  line-height: 1.5;
  border-top: 1px dashed #88C0D0;
  padding-top: 10px;
  animation: fadeIn 0.2s ease;
}

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


.privacy-terminal {
  max-width: 750px;
  margin: 0px auto;
  padding: 25px;
  color: #D8DEE9;
  font-family: 'Courier New', monospace;
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid rgba(163,190,140,0.30);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.privacy-terminal.loaded {
  opacity: 1;
  transform: translateY(0px);
}

.privacy-title {
  text-align: center;
  color: #A3BE8C;
  letter-spacing: 3px;
  margin-bottom: 5px;
  text-shadow: 0 0 8px rgba(163,190,140,0.3);
  text-transform: uppercase;
}

.privacy-date {
  text-align: center;
  color: #8FBCBB;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 25px;
}

.pp-section {
  border-left: 2px dashed rgba(163,190,140,0.4);
  padding: 15px 15px 15px 20px;
  margin-bottom: 20px;
  background: rgba(163,190,140,0.04);
  border-radius: 6px;
  transition: border-color 0.2s;
}
.pp-section:hover {
  border-color: #A3BE8C;
}

.pp-section h2 {
  margin-bottom: 10px;
  color: #88C0D0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pp-list {
  margin: 10px 0;
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pp-list li {
  color: #D8DEE9;
  font-size: 14px;
}

.highlight {
  color: #A3BE8C;
}

.terminal-box {
  background: rgba(10,14,39,0.6);
  padding: 10px;
  border: 1px solid rgba(163,190,140,0.4);
  border-radius: 4px;
  color: #A3BE8C;
  font-size: 13px;
  margin-top: 10px;
}

.consent-box {
  max-width: 500px;
  margin: 20px auto;
  padding: 15px;
  border: 1px dashed #A3BE8C;
  background: rgba(163, 190, 140, 0.05);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
}

.consent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #A3BE8C;
  font-size: 15px;
}

.consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #A3BE8C;
  cursor: pointer;
}