:root {
  --nyan-purple: #bc00ff;
  --nyan-blue: #00ccff;
  --glass: rgba(0, 0, 0, 0.8);
}

body {
  margin: 0; background: #050505; color: #fff;
  font-family: 'Outfit', sans-serif;
  overflow: hidden; height: 100vh;
}

#app {
  display: flex; flex-direction: column; height: 100vh;
  position: relative;
}

/* Back link */
.back-link {
  position: fixed; top: 10px; right: 10px; z-index: 100;
  background: var(--glass); padding: 5px 12px; border-radius: 20px;
  color: var(--nyan-blue); text-decoration: none; font-weight: 800;
  text-shadow: 0 0 10px var(--nyan-blue); border: 1px solid var(--nyan-blue);
  font-size: 0.8rem;
}

/* Chat container */
#chat-box {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 15px;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.message {
  max-width: 80%; padding: 12px 18px; border-radius: 20px;
  position: relative; animation: fadeIn 0.3s ease;
}

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

.message.user {
  align-self: flex-end; background: var(--nyan-purple);
  box-shadow: 0 0 15px var(--nyan-purple);
}

.message.bot {
  align-self: flex-start; background: #222;
  border: 1px solid var(--nyan-blue);
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.2);
}

.sender { font-size: 0.7rem; font-weight: 900; margin-bottom: 5px; opacity: 0.6; }
.text { line-height: 1.4; }

/* Input area */
.input-area {
  padding: 15px; background: var(--glass);
  backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; gap: 10px;
}

@media (max-width: 600px) {
  .input-area { flex-direction: column; }
  #send-btn { height: 45px; }
}

#message-input {
  flex: 1; background: #121212; border: 1px solid var(--nyan-blue);
  padding: 12px; border-radius: 10px; color: #fff;
  outline: none;
}

#send-btn {
  background: var(--nyan-blue); color: #000; border: none;
  padding: 0 20px; border-radius: 10px; font-weight: 900;
  cursor: pointer; box-shadow: 0 0 15px var(--nyan-blue);
}

/* Neon Flicker effect for titles or accents */
.neon-flicker {
  animation: flicker 2s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
  52% { opacity: 1; }
  53% { opacity: 0.7; }
  54% { opacity: 1; }
}


/* --- GLOBAL NYANTREPRENEUR OVERRIDES --- */
.back-link, .hub-btn {
  position: absolute !important; top: 15px !important; left: 15px !important; z-index: 9999 !important;
  background: rgba(18, 18, 18, 0.8) !important; color: #ffd700 !important;
  padding: 8px 16px !important; border-radius: 20px !important; font-weight: 800 !important;
  text-decoration: none !important; font-size: 0.8rem !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
  transition: all 0.2s ease !important;
}
