.fai-container {
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
  background: #131623;
  color: #c5e4ff;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.fai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-bottom: 1px solid rgba(100,255,255,0.07);
  background: rgba(24,29,49,0.92);
  box-shadow: 0 2px 20px 0 rgba(50,200,255,0.09);
  z-index: 2;
}

.fai-logo-glow {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #60f3ff;
  text-shadow:
    0 0 12px #08f3ff,
    0 0 32px #0fd8ff,
    0 0 64px #12f3ff;
  filter: blur(0.2px);
}

.fai-nav {
  display: flex;
  gap: 2rem;
}

.fai-nav-btn {
  background: linear-gradient(90deg, #2028ff44 0%, #00ffd844 100%);
  color: #c5e4ff;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 0 10px #0fd8ff33;
  transition: background 0.32s, box-shadow 0.32s;
  cursor: pointer;
}
.fai-nav-btn:hover {
  background: linear-gradient(90deg, #00ffd8 0%, #2028ff 100%);
  box-shadow: 0 0 30px #0fd8ff88;
}

.fai-api-config {
  position: absolute;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  z-index: 3;
  box-shadow: 0 0 40px #12f3ff33, 0 0 2px #08f3ff;
  background: rgba(29,41,65,0.85);
  border: 1.5px solid #09e3ff55;
  animation: floatCard 4s ease-in-out infinite alternate;
  backdrop-filter: blur(8px);
}
@keyframes floatCard {
  0% { transform: translateX(-50%) translateY(0px); }
  100% { transform: translateX(-50%) translateY(18px); }
}
.holo-title {
  font-size: 1.33rem;
  font-weight: 600;
  color: #60f3ff;
  margin-bottom: 1.6rem;
  letter-spacing: 0.09em;
  text-shadow: 0 0 14px #0fd8ff66;
}
.holo-field {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.holo-field label {
  font-size: 0.95rem;
  color: #60f3ff;
  letter-spacing: 0.09em;
}
.holo-field input {
  background: rgba(13, 26, 40, 0.65);
  border: 1.2px solid #0fd8ff;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: #c5e4ff;
  font-size: 1rem;
  box-shadow: 0 0 10px #0fd8ff33;
  outline: none;
  transition: border 0.22s, box-shadow 0.22s;
}
.holo-field input:focus {
  border: 1.6px solid #60f3ff;
  box-shadow: 0 0 20px #12f3ff77;
}

.fai-main {
  margin-top: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
}

.holo-chat {
  width: 500px;
  min-height: 210px;
  border-radius: 16px;
  background: rgba(29,41,65,0.89);
  box-shadow: 0 0 45px #0fd8ff22, 0 0 1.5px #08f3ff;
  border: 1.5px solid #09e3ff55;
  margin-bottom: 2.3rem;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(7px);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  overflow: hidden;
  animation: holoPulse 2.1s infinite alternate;
}
@keyframes holoPulse {
  0% { box-shadow: 0 0 45px #0fd8ff22, 0 0 1.5px #08f3ff; }
  100% { box-shadow: 0 0 65px #12f3ff55, 0 0 4px #08f3ff; }
}
.fai-message {
  font-size: 1.06rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: rgba(28,39,60,0.88);
  box-shadow: 0 0 14px #0fd8ff22;
  animation: fadeInMsg 1.5s;
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: scale(0.93);}
  to { opacity: 1; transform: scale(1);}
}
.fai-user-msg {
  border-left: 4px solid #60f3ff;
}
.fai-ai-msg {
  border-left: 4px solid #0fd8ff;
  background: rgba(48,64,89,0.92);
}

.holo-input {
  width: 500px;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: rgba(29,41,65,0.89);
  box-shadow: 0 0 20px #0fd8ff22, 0 0 1.5px #08f3ff;
  border: 1.5px solid #09e3ff55;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(4px);
}

.fai-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #c5e4ff;
  font-size: 1.06rem;
  padding: 0.7rem 1rem;
  outline: none;
}
.fai-send-btn {
  background: linear-gradient(90deg, #2028ff88 0%, #00ffd888 100%);
  color: #c5e4ff;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 2.2rem;
  font-size: 1.06rem;
  font-weight: 600;
  box-shadow: 0 0 14px #12f3ff55;
  transition: background 0.27s, box-shadow 0.27s;
  cursor: pointer;
}
.fai-send-btn:hover {
  background: linear-gradient(90deg, #00ffd8 0%, #2028ff 100%);
  box-shadow: 0 0 30px #0fd8ff88;
}

.fai-bg-layers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fai-bg.holo-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 850px;
  height: 850px;
  transform: translateX(-50%);
  background: radial-gradient(circle, #0fd8ff55 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.45;
  z-index: 0;
  animation: bgGlowPulse 7s infinite alternate;
}
@keyframes bgGlowPulse {
  0% { opacity: 0.45;}
  100% { opacity: 0.7;}
}
.fai-bg.holo-grid {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 120vw;
  height: 50vh;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(0deg, #00ffd822 0px, #00ffd822 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, #00ffd822 0px, #00ffd822 1px, transparent 1px, transparent 40px);
  opacity: 0.11;
  z-index: 0;
  filter: blur(1px);
}