:root {
  --holo-panel-shadow: 0 30px 60px rgba(7, 10, 30, 0.45);
  --holo-panel-rim: var(--holo-edge-color, rgba(255, 255, 255, 0.35));
  --holo-pane-luminosity: calc(var(--holo-light-intensity, 0.22) * 0.6);
  --holo-overlay-opacity: 0;
}

.mira-holo-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 20%, var(--mira-holo-color, rgba(255, 255, 255, 0.45)) 0%, transparent 55%),
    radial-gradient(circle at 80% 0%, var(--mira-holo-color, rgba(255, 255, 255, 0.35)) 0%, transparent 45%);
  animation: holo-layer-sheen 18s ease-in-out infinite;
  transition: opacity 0.35s ease;
  filter: blur(6px);
}

body[data-holo-mode="on"] .mira-holo-layer {
  opacity: calc(var(--mira-holo-intensity, 0.35) * var(--mira-holo-strength, 1.1));
}

.mira-holo-layer--pulse {
  animation-name: holo-layer-pulse;
  animation-duration: 1s;
  animation-iteration-count: 1;
}

.mira-holo-engine {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 55%),
    radial-gradient(circle at 70% 20%, var(--mira-accent, #38bdf8) 0%, transparent 45%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.8s ease;
  transform: translateZ(0);
  filter: blur(16px);
}

.mira-holo-engine[data-active="true"] {
  opacity: 0.55;
}

.mira-holo-engine__particles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(circle at 60% 70%, rgba(132, 204, 255, 0.35), transparent 55%);
  animation: holo-particles 22s linear infinite;
  opacity: 0.4;
}

@keyframes holo-layer-sheen {
  0% {
    transform: translate3d(-25px, -12px, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, 16px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-25px, -12px, 0) scale(1);
  }
}

@keyframes holo-layer-pulse {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes holo-particles {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(4%, 3%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
}

.panel,
.assistant-orbit,
.context-orbit,
.module-orbit,
.assistant-card,
.context-card,
.module-shell {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, var(--mira-card, rgba(255, 255, 255, 0.75)), rgba(255, 255, 255, 0.85));
  box-shadow:
    var(--holo-panel-shadow),
    0 0 calc(var(--holo-depth, 12px) * 3) rgba(24, 172, 255, var(--holo-pane-luminosity));
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  overflow: hidden;
  isolation: isolate;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid var(--holo-panel-rim);
  box-shadow: 0 0 30px var(--holo-glow-color);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: scale(1);
}

.panel:hover::after,
.assistant-orbit:hover::after,
.context-orbit:hover::after {
  opacity: 1;
  transform: scale(1.02);
}

.nav-pill,
.header-icon-pill,
.m-pill-btn,
.mira-pill-button {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(81, 92, 255, 0.15), 0 10px 25px rgba(2, 6, 23, 0.25);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05));
  color: var(--mira-text-primary, #f8fafc);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.nav-pill:hover,
.header-icon-pill:hover,
.m-pill-btn:hover,
.mira-pill-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 35px rgba(6, 7, 19, 0.35), 0 0 30px rgba(0, 153, 255, 0.35);
}

.assistant-orbit,
.context-orbit {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(248, 250, 252, 0.92));
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 15px 45px rgba(0, 3, 20, 0.22), 0 0 35px rgba(89, 119, 255, 0.15);
}

.assistant-connection,
.context-card__title,
.assistant-card__label {
  color: var(--mira-text-primary);
}

body[data-holo-mode="on"] .panel {
  animation: holoFloat var(--holo-animation-duration, 16s) ease-in-out infinite;
  animation-play-state: var(--holo-floating-state, running);
}

body[data-holo-mode="on"] .panel::after {
  box-shadow: 0 0 45px var(--holo-glow-color);
}

body[data-holo-mode="on"][data-holo-intensity="high"] .panel {
  box-shadow:
    var(--holo-panel-shadow),
    0 0 calc(var(--holo-depth, 12px) * 4) rgba(56, 189, 248, 0.45);
  transform: translateZ(0);
}

body[data-holo-mode="on"][data-holo-intensity="low"] .panel {
  box-shadow:
    var(--holo-panel-shadow),
    0 0 calc(var(--holo-depth, 12px) * 2) rgba(24, 172, 255, 0.2);
}

@keyframes holoFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, calc(var(--holo-floating-range, 2.5px) * -1), 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.settings-theme-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.settings-theme-selector,
.settings-animation-slider {
  appearance: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--mira-text-primary);
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.settings-theme-selector:focus,
.settings-animation-slider:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.settings-animation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.settings-animation-row span {
  font-size: 12px;
  color: var(--mira-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
