@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700&display=swap');

:root {
  --bg-dark: #050505;
  --bg-darker: #000000;
  --text-light: #f0f0f0;
  --text-dim: #a0a0a0;
  --silver-light: #e0e0e0;
  --silver-mid: #b0b0b0;
  --silver-dark: #888888;
  
  --brushed-metal: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 25%, #3a3a3a 50%, #1a1a1a 75%, #2a2a2a 100%);
  --metallic-text: linear-gradient(to right, #ffffff, #a0a0a0, #ffffff);
  
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ── 3D World Controls ── */
#joystick-container {
  display: none;
  position: fixed;
  right: 32px;
  bottom: 40px;
  width: 120px;
  height: 120px;
  z-index: 80;
  touch-action: none;
  user-select: none;
}

#joystick-base {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#joystick-handle {
  position: absolute;
  top: 35px;
  left: 35px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 255, 204, 0.8);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
  pointer-events: none;
  transition: transform 0.08s ease-out;
}

#menu-btn,
#wallet-btn {
  display: flex;
  position: fixed;
  top: 24px;
  right: 24px;
  width: 78px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(0, 255, 204, 0.5);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 80;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  touch-action: none;
  user-select: none;
}

#wallet-btn {
  left: 24px;
  right: auto;
  width: 104px;
  font-size: 0.88rem;
}

#menu-btn:active,
#menu-btn.is-pressed,
#wallet-btn:active,
#wallet-btn.is-connected {
  background: rgba(0, 255, 204, 0.25);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.45);
}

/* Show joystick only on touch devices */
@media (pointer: coarse) {
  #joystick-container { display: block; }
  #menu-btn {
    top: auto;
    right: auto;
    bottom: 40px;
    left: 32px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
  }
  #wallet-btn {
    top: 24px;
    left: 24px;
    right: auto;
    width: 104px;
    height: 44px;
  }
}


#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

#ui-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  pointer-events: none; /* Let clicks pass through to 3D world unless overlay is active */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#ui-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay-close-btn {
  position: fixed;
  top: 18px;
  right: 22px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: rgba(4, 8, 12, 0.86);
  border: 1px solid rgba(0, 255, 204, 0.45);
  border-radius: 50%;
  color: var(--text-light);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 240;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.18);
}

.overlay-close-btn:hover {
  color: var(--neon-cyan, #00ffff);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  transform: scale(1.1);
}

.overlay-content-wrapper {
  width: 90%;
  max-width: 1200px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  /* Custom scrollbar for the overlay */
}

.overlay-content-wrapper::-webkit-scrollbar {
  width: 8px;
}
.overlay-content-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.overlay-content-wrapper::-webkit-scrollbar-thumb {
  background: var(--silver-dark);
  border-radius: 4px;
}
.overlay-content-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--silver-light);
}

.overlay-iframe-wrapper {
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.map-menu {
  width: min(94vw, 880px);
  max-height: 84vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(8, 11, 15, 0.96), rgba(2, 4, 7, 0.96));
  border: 1px solid rgba(0, 255, 204, 0.24);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin: 0 auto;
}

.map-header {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  text-align: center;
  flex-direction: column;
}

.map-header h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0;
}

.map-header span {
  color: rgba(0, 255, 204, 0.72);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.game-map {
  position: relative;
  width: min(100%, 780px);
  aspect-ratio: 16 / 10;
  min-height: 420px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid rgba(220, 250, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 78%, rgba(0, 255, 204, 0.16), transparent 16%),
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.09), transparent 12%),
    linear-gradient(180deg, rgba(28, 35, 42, 0.86), rgba(8, 11, 14, 0.94));
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 255, 204, 0.12);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
}

.map-path {
  position: absolute;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 255, 204, 0.34);
  box-shadow: 0 0 14px rgba(0, 255, 204, 0.28);
  transform-origin: left center;
}

.map-path-main {
  left: 17%;
  top: 66%;
  width: 66%;
}

.map-path-left {
  left: 28%;
  top: 66%;
  width: 28%;
  transform: rotate(-46deg);
}

.map-path-right {
  left: 50%;
  top: 66%;
  width: 28%;
  transform: rotate(-134deg);
}

.map-path-back {
  left: 50%;
  top: 18%;
  width: 66%;
  transform: rotate(90deg);
}

.map-path-arcade {
  left: 50%;
  top: 84%;
  width: 21%;
  transform: rotate(0deg);
}

.map-spawn {
  position: absolute;
  left: 50%;
  top: 94%;
  transform: translate(-50%, -50%);
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  min-width: 92px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(0, 255, 204, 0.55);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(18, 25, 30, 0.96), rgba(2, 4, 6, 0.96));
  color: #f8fbff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(0.62rem, 1.7vw, 0.82rem);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.42), 0 0 16px rgba(0, 255, 204, 0.16);
  z-index: 2;
}

.map-node-wide {
  min-width: 118px;
}

.map-node-tower {
  min-width: 74px;
  min-height: 64px;
  writing-mode: vertical-rl;
}

.map-node-sign {
  min-width: 78px;
  min-height: 34px;
  border-style: dashed;
}

.map-node:hover,
.map-node:focus-visible {
  border-color: rgba(0, 255, 204, 0.78);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.42), 0 0 24px rgba(0, 255, 204, 0.34);
  outline: none;
}

@media (max-width: 640px) {
  .map-menu {
    width: min(94vw, 520px);
    padding: 16px;
  }
  .map-header {
    align-items: center;
    gap: 2px;
  }
  .game-map {
    aspect-ratio: 9 / 13;
    min-height: 560px;
  }
  .map-node {
    min-width: 74px;
    padding: 7px 8px;
  }
  .map-node-wide {
    min-width: 88px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

a {
  color: var(--silver-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Typography classes */
.text-metallic {
  background: var(--metallic-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brushed-metal);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  border-color: var(--silver-light);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  position: relative;
}

.hero::after {
  display: none;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

/* Values / Services Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--metallic-text);
  opacity: 0;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.glass-card p {
  color: var(--text-dim);
}

/* Pricing Section */
.pricing-section {
  background: transparent;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-tier {
  font-family: 'Outfit', sans-serif;
  color: var(--silver-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--metallic-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-desc {
  color: var(--text-dim);
  margin-bottom: 30px;
  font-style: italic;
}

.price-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.price-features li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  color: var(--text-light);
}

.price-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--silver-mid);
}

.price-card.featured {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  transform: scale(1.05);
}

.price-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

/* Contact Section */
.contact-section {
  text-align: center;
}

.contact-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.contact-item {
  font-size: 1.1rem;
}

.contact-item span {
  color: var(--text-dim);
  margin-right: 10px;
}

/* Footer */
footer {
  background: rgba(2, 2, 2, 0.7);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #111;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--silver-light);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none; /* simple mobile nav approach for static pages */
  }
  .price-card.featured {
    transform: none;
  }
  .price-card.featured:hover {
    transform: translateY(-5px);
  }
}

/* Legal Pages Styling */
.legal-content {
  padding: 150px 0 100px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--silver-light);
}

.legal-content p, .legal-content ul {
  margin-bottom: 20px;
  color: var(--text-dim);
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 10px;
}

/* Pipeline System Styling */
.pipeline-header {
    text-align: center;
    margin-bottom: 3rem;
}
.pipeline-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
}
.options-panel, .summary-panel {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}
.options-panel h3, .summary-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--metallic-silver);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}
.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}
.option-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.option-item.selected {
    border-color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.05);
}
.option-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-light);
}
.option-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
}
.option-price {
    font-weight: 600;
    color: var(--neon-cyan);
}
.summary-total {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0;
    text-align: center;
}
.summary-total span {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 400;
}
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.lead-form input, .lead-form textarea {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}
.lead-form input:focus, .lead-form textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
}
/* Demos Section */
#demos {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}
.demo-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}
.demo-frame {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.demo-web {
    flex: 2.5 1 600px;
    max-width: 900px;
}
.demo-mobile {
    flex: 1 1 250px;
    max-width: 350px;
}
@media (max-width: 768px) {
    .demo-web, .demo-mobile {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
.demo-frame img, .demo-frame video {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   AI CITIZENS — HOLOGRAPHIC CHAT UI
   ═══════════════════════════════════════════════════════════════════ */

/* ── Proximity Cue Banner ── */
.proximity-cue {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1100;
    background: rgba(6, 12, 18, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 12px;
    padding: 12px 24px;
    text-align: center;
    cursor: pointer;
    min-width: 280px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.15), inset 0 0 30px rgba(0, 255, 204, 0.03);
}
.proximity-cue.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.proximity-cue .prox-name {
    color: #ffffff;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}
.proximity-cue .prox-action {
    color: rgba(180, 220, 240, 0.7);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}
.proximity-cue .prox-action kbd {
    background: rgba(0, 255, 204, 0.15);
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #00ffcc;
}
.proximity-cue .status-live {
    color: #00ff88;
    font-size: 10px;
    font-weight: 700;
}
.proximity-cue .status-sim {
    color: #88aacc;
    font-size: 10px;
    font-weight: 700;
}

/* ── Holographic Chat Panel ── */
.hologram-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-height: 520px;
    background: rgba(6, 10, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 16px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 255, 204, 0.1),
        0 4px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(0, 255, 204, 0.02);
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.hologram-chat.open {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.hologram-chat.closing {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
}

/* Scanline overlay */
.hologram-scanline {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 2px,
        rgba(0, 255, 204, 0.015) 2px,
        rgba(0, 255, 204, 0.015) 4px
    );
    z-index: 1;
}

/* Header */
.hologram-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.15);
    position: relative;
    z-index: 2;
}
.hologram-name {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hologram-role {
    font-size: 11px;
    color: rgba(160, 190, 210, 0.7);
    font-family: 'Inter', sans-serif;
    margin-top: 2px;
}
.hologram-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #99aabb;
    font-size: 14px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.hologram-close:hover {
    background: rgba(255, 80, 80, 0.2);
    color: #ff6666;
}

/* Stats bar */
.hologram-stats {
    display: flex;
    gap: 12px;
    padding: 6px 16px;
    font-size: 10px;
    color: rgba(0, 255, 204, 0.5);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    border-bottom: 1px solid rgba(0, 255, 204, 0.08);
    position: relative;
    z-index: 2;
}

/* Messages */
.hologram-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    min-height: 200px;
    max-height: 300px;
    position: relative;
    z-index: 2;
}
.hologram-messages::-webkit-scrollbar {
    width: 4px;
}
.hologram-messages::-webkit-scrollbar-track {
    background: transparent;
}
.hologram-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.2);
    border-radius: 2px;
}

.chat-msg {
    margin-bottom: 10px;
    animation: chatFadeIn 0.3s ease;
}
.chat-msg-name {
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chat-msg-name.visitor-name {
    color: #88ccff;
}
.chat-msg-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(220, 230, 240, 0.9);
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px 12px;
    border-left: 2px solid rgba(0, 255, 204, 0.2);
}
.chat-msg-visitor .chat-msg-text {
    border-left-color: rgba(136, 204, 255, 0.3);
    background: rgba(136, 204, 255, 0.06);
}

/* Typing indicator */
.chat-typing {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    align-items: center;
}
.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.5);
    animation: typingBounce 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

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

/* Input */
.hologram-input-wrap {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid rgba(0, 255, 204, 0.12);
    position: relative;
    z-index: 2;
}
.hologram-input {
    flex: 1;
    background: rgba(0, 255, 204, 0.06);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #e0f0ff;
    font-size: 13px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hologram-input:focus {
    border-color: rgba(0, 255, 204, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.1);
}
.hologram-input::placeholder {
    color: rgba(120, 160, 180, 0.4);
}
.hologram-send {
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    color: #00ffcc;
    font-size: 16px;
    width: 38px;
    cursor: pointer;
    transition: background 0.2s;
}
.hologram-send:hover {
    background: rgba(0, 255, 204, 0.25);
}

/* Telemetry bar */
.hologram-telemetry {
    padding: 6px 16px;
    font-size: 9px;
    color: rgba(0, 255, 204, 0.35);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 204, 0.06);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

/* ── Mobile Responsive ── */
@media (max-width: 600px) {
    .hologram-chat {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 10px;
        max-height: 420px;
    }
    .proximity-cue {
        bottom: 80px;
        min-width: 240px;
        padding: 10px 18px;
    }
}
