/* ==============================================================================
   THENTIVA AI HOLOGRAM SYSTEM — CYBERNETIC NEON INTERFACE
   ============================================================================== */

:root {
  --holo-cyan: #00f3ff;
  --holo-cyan-glow: rgba(0, 243, 255, 0.4);
  --holo-purple: #a855f7;
  --holo-purple-glow: rgba(168, 85, 247, 0.35);
  --holo-green: #10b981;
  --holo-bg: rgba(6, 11, 25, 0.88);
  --holo-border: rgba(0, 243, 255, 0.3);
}

/* Modal Overlay */
.thentiva-holo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.thentiva-holo-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hologram Main Window Card */
.thentiva-holo-window {
  position: relative;
  width: min(840px, 94vw);
  max-height: 92vh;
  background: var(--holo-bg);
  border: 1px solid var(--holo-border);
  border-radius: 24px;
  box-shadow: 
    0 0 50px rgba(0, 243, 255, 0.18),
    0 25px 60px rgba(0, 0, 0, 0.7),
    inset 0 0 35px rgba(168, 85, 247, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.thentiva-holo-overlay.active .thentiva-holo-window {
  transform: scale(1) translateY(0);
}

/* Holographic Scanlines Effect */
.thentiva-holo-window::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 243, 255, 0.02) 0px,
    rgba(0, 243, 255, 0.02) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* Top Glow Beam Bar */
.thentiva-holo-window::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--holo-cyan), var(--holo-purple), transparent);
  box-shadow: 0 0 16px var(--holo-cyan);
}

/* Header */
.thentiva-holo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.15);
  background: rgba(10, 18, 38, 0.6);
  position: relative;
  z-index: 20;
}

.thentiva-holo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--holo-cyan);
  text-transform: uppercase;
}

.thentiva-holo-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--holo-cyan);
  box-shadow: 0 0 10px var(--holo-cyan);
  animation: holoPulse 1.8s infinite ease-in-out;
}

@keyframes holoPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 1; }
}

.thentiva-holo-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.thentiva-holo-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: rotate(90deg);
}

/* Body: 2-Column Grid (Hologram Visual + Briefing) */
.thentiva-holo-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  padding: 24px;
  gap: 24px;
  overflow-y: auto;
  position: relative;
  z-index: 20;
}

@media (max-width: 768px) {
  .thentiva-holo-body {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
}

/* Hologram Visualizer Column */
.thentiva-holo-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 280px;
}

/* Canvas Hologram */
#thentiva-holo-canvas {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.45));
}

/* Pedestal Light Emitter */
.thentiva-holo-pedestal {
  position: relative;
  width: 180px;
  height: 22px;
  margin-top: -10px;
  background: radial-gradient(ellipse at center, rgba(0, 243, 255, 0.6) 0%, rgba(168, 85, 247, 0.3) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(3px);
  animation: pedestalGlow 2.5s infinite alternate ease-in-out;
}

@keyframes pedestalGlow {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* Audio Waveform */
.thentiva-holo-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  margin-top: 14px;
}

.thentiva-holo-bar {
  width: 3px;
  background: var(--holo-cyan);
  border-radius: 3px;
  animation: waveBar 1.2s infinite ease-in-out alternate;
  box-shadow: 0 0 6px var(--holo-cyan);
}

.thentiva-holo-bar:nth-child(2) { animation-delay: 0.15s; height: 16px; }
.thentiva-holo-bar:nth-child(3) { animation-delay: 0.3s; height: 22px; }
.thentiva-holo-bar:nth-child(4) { animation-delay: 0.45s; height: 12px; }
.thentiva-holo-bar:nth-child(5) { animation-delay: 0.6s; height: 18px; }
.thentiva-holo-bar:nth-child(6) { animation-delay: 0.75s; height: 8px; }

@keyframes waveBar {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Information & Intelligence Column */
.thentiva-holo-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thentiva-holo-greeting h2 {
  margin: 0 0 6px 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 40%, #00f3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.thentiva-holo-greeting p {
  margin: 0 0 16px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #94a3b8;
}

/* Metrics Mini-Grid */
.thentiva-holo-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.thentiva-holo-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(0, 243, 255, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.thentiva-holo-card:hover {
  border-color: rgba(0, 243, 255, 0.4);
  background: rgba(15, 23, 42, 0.85);
  transform: translateY(-2px);
}

.thentiva-holo-card-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.thentiva-holo-card-val {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}

.thentiva-holo-card-sub {
  font-size: 10.5px;
  color: var(--holo-green);
  margin-top: 2px;
}

/* AI Command & Ask Input */
.thentiva-holo-input-box {
  position: relative;
  margin-bottom: 16px;
}

.thentiva-holo-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 12px;
  padding: 10px 45px 10px 14px;
  font-size: 13.5px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.thentiva-holo-input:focus {
  border-color: var(--holo-cyan);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.3);
}

.thentiva-holo-submit-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--holo-cyan), var(--holo-purple));
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #040914;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.thentiva-holo-submit-btn:hover {
  opacity: 0.9;
}

/* AI Response Bubble */
.thentiva-holo-bubble {
  background: rgba(2, 6, 23, 0.7);
  border-left: 3px solid var(--holo-cyan);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 16px;
  min-height: 24px;
  display: flex;
  align-items: center;
}

/* Footer Action Buttons */
.thentiva-holo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.thentiva-holo-btn {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
}

.thentiva-holo-btn-primary {
  background: linear-gradient(135deg, var(--holo-cyan), #0284c7);
  color: #04101e;
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.35);
}

.thentiva-holo-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 243, 255, 0.55);
}

.thentiva-holo-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.thentiva-holo-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Voice Mute Toggle */
.thentiva-holo-sound-toggle {
  background: none;
  border: 1px solid rgba(0, 243, 255, 0.25);
  color: var(--holo-cyan);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==============================================================================
   FLOATING LAUNCHER ORB (DOCK BUTTON AT BOTTOM-RIGHT)
   ============================================================================== */
.thentiva-holo-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99990;
  background: rgba(6, 11, 25, 0.92);
  border: 1px solid var(--holo-cyan);
  color: #fff;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 
    0 0 20px rgba(0, 243, 255, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.thentiva-holo-floating-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 0 30px rgba(0, 243, 255, 0.5),
    0 12px 30px rgba(0, 0, 0, 0.7);
  border-color: #fff;
}

.thentiva-holo-floating-canvas {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.thentiva-holo-floating-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--holo-cyan);
  letter-spacing: 0.3px;
}

/* Hide on mobile if dock is present or adjust position */
@media (max-width: 640px) {
  .thentiva-holo-floating-btn {
    bottom: 78px;
    right: 14px;
    padding: 6px 12px 6px 8px;
  }
  .thentiva-holo-floating-label {
    display: none;
  }
}

/* ==============================================================================
   OVERVIEW NATIVE DRIBBLE 3857304 HOLOGRAM HUD & TELEMETRY WIDGET
   ============================================================================== */

.thentiva7-telemetry-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 18px);
  padding: 20px 24px;
  gap: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 243, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.thentiva7-telemetry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.8), rgba(168, 85, 247, 0.8), transparent);
}

.thentiva7-telemetry-card.call-active-state {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.25), inset 0 0 25px rgba(239, 68, 68, 0.08);
  animation: callCardPulse 1.8s infinite alternate ease-in-out;
}

.thentiva7-telemetry-card.call-active-state::before {
  background: linear-gradient(90deg, transparent, #ef4444, #f59e0b, transparent);
  box-shadow: 0 0 14px #ef4444;
}

@keyframes callCardPulse {
  0% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.2); }
  100% { box-shadow: 0 0 45px rgba(239, 68, 68, 0.45); }
}

.thentiva7-holo-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#thentiva-dribbble-hologram-canvas {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: drop-shadow(0 0 16px rgba(0, 243, 255, 0.35));
}

.thentiva7-telemetry-card.call-active-state #thentiva-dribbble-hologram-canvas {
  filter: drop-shadow(0 0 24px rgba(239, 68, 68, 0.65));
}

.thentiva7-telemetry-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thentiva7-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.thentiva7-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.thentiva7-badge.idle {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.thentiva7-badge.active {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.thentiva7-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.thentiva7-pulse.green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: holoPulse 1.8s infinite ease-in-out;
}

.thentiva7-pulse.red {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: holoPulse 0.8s infinite ease-in-out;
}

.thentiva7-telemetry-title h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.thentiva7-telemetry-title p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 3-Column Telemetry Spec Row */
.thentiva7-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.thentiva7-spec-box {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}

.thentiva7-spec-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.thentiva7-spec-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.thentiva7-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .thentiva7-telemetry-card {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }
  .thentiva7-holo-stage {
    min-height: 200px;
  }
}

/* ==============================================================================
   PHOTOREALISTIC 3D TRAPCODE HOLOGRAM VIEWPORT (DRIBBLE 3857304)
   ============================================================================== */

.dribbble-holo-viewport {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #020617 0%, #000000 85%);
  box-shadow: 0 0 35px rgba(0, 243, 255, 0.35), inset 0 0 25px rgba(0, 243, 255, 0.25);
  border: 1.5px solid rgba(0, 243, 255, 0.5);
  overflow: hidden;
  transition: all 0.4s ease;
}

.thentiva7-telemetry-card.call-active-state .dribbble-holo-viewport {
  box-shadow: 0 0 55px rgba(239, 68, 68, 0.75), inset 0 0 35px rgba(239, 68, 68, 0.4);
  border-color: rgba(239, 68, 68, 0.85);
}

.dribbble-holo-disc {
  position: absolute;
  inset: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: holoMajesticSpin 40s linear infinite;
  transition: filter 0.4s ease;
}

.dribbble-holo-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: contrast(1.15) brightness(1.1);
  mix-blend-mode: screen;
}

.thentiva7-telemetry-card.call-active-state .dribbble-holo-disc {
  animation: holoMajesticSpin 5s linear infinite;
}

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

/* Outer Rotating Cyan Dashed Ring */
.dribbble-hud-ring.outer-ring {
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(0, 243, 255, 0.6);
  border-radius: 50%;
  animation: holoReverseSpin 24s linear infinite;
  pointer-events: none;
}

/* Inner Counter-Rotating Violet Dashed Ring */
.dribbble-hud-ring.inner-ring {
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(168, 85, 247, 0.55);
  border-radius: 50%;
  animation: holoMajesticSpin 18s linear infinite;
  pointer-events: none;
}

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

/* Radar Scan Beam */
.dribbble-hud-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 310deg, rgba(0, 243, 255, 0.35) 360deg);
  animation: holoMajesticSpin 3.5s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.thentiva7-telemetry-card.call-active-state .dribbble-hud-sweep {
  background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, rgba(239, 68, 68, 0.6) 360deg);
  animation: holoMajesticSpin 1.2s linear infinite;
}

/* Pedestal Reflection */
.dribbble-holo-pedestal {
  width: 150px;
  height: 16px;
  margin-top: 8px;
  background: radial-gradient(ellipse at center, rgba(0, 243, 255, 0.6) 0%, transparent 75%);
  border-radius: 50%;
  filter: blur(4px);
  animation: pedestalBreath 3s infinite alternate ease-in-out;
}

.thentiva7-telemetry-card.call-active-state .dribbble-holo-pedestal {
  background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.85) 0%, transparent 75%);
}

@keyframes pedestalBreath {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 1; }
}
