@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&family=Poppins:wght@700;900&display=swap');

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

body {
  background-color: #050505;
  color: #00ff66;
  font-family: 'Fira Code', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.terminal-container {
  width: 90%;
  max-width: 500px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid #00ff66;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.3);
  overflow: hidden;
}

.terminal-header {
  background: #1a1a1a;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.title {
  color: #888;
  font-size: 11px;
  margin-left: 10px;
}

.terminal-body {
  padding: 20px 15px;
  text-align: center;
}

#typing-text {
  font-size: 13px;
  text-align: left;
  line-height: 1.5;
  white-space: pre-line;
  color: #00ff66;
}

.hidden {
  display: none !important;
}

/* --- ANIMATED ROBOT AVATAR --- */
.avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.robot-head {
  width: 80px;
  height: 70px;
  background: #111;
  border: 2px solid #00e5ff;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.antenna {
  width: 4px;
  height: 12px;
  background: #ff0055;
  position: absolute;
  top: -12px;
  border-radius: 2px;
  box-shadow: 0 0 8px #ff0055;
}

.eyes {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}

.eye {
  width: 12px;
  height: 12px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff66;
  animation: blink 3s infinite;
}

.mouth {
  width: 30px;
  height: 4px;
  background: #ffcc00;
  border-radius: 2px;
  box-shadow: 0 0 8px #ffcc00;
  transition: all 0.1s ease;
}

/* Talking Animation Class */
.talking {
  animation: talk 0.2s infinite alternate;
}

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes talk {
  0% { height: 4px; border-radius: 2px; }
  100% { height: 14px; border-radius: 50%; }
}

/* ----------------------------- */

.glow-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 0 10px #ff0055, 0 0 20px #ff0055;
}

.name-text {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #00e5ff;
  text-shadow: 0 0 15px #00e5ff;
  margin: 5px 0;
}

.badge {
  color: #ffcc00;
  font-size: 1.4rem;
}

.speech-bubble {
  background: #1e1e1e;
  border: 1px solid #ff0055;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  margin: 15px 0;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#surprise-btn {
  background: linear-gradient(45deg, #ff0055, #00ff66);
  border: none;
  color: white;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.sender-tag {
  margin-top: 20px;
  font-size: 13px;
  color: #aaa;
  border-top: 1px dashed #333;
  padding-top: 12px;
}

.sender-name {
  color: #00ff66;
  font-weight: bold;
}
