:root {
  color-scheme: dark;
  --cyan: #00e5ff;
  --blue: #168cff;
  --purple: #9b4dff;
  --glass: rgba(4, 16, 43, .88);
  --border: rgba(100, 160, 255, .38)
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #01040d;
  font-family: Inter, Manrope, "Segoe UI", sans-serif;
  color: #f5f7ff
}

body {
  overflow: hidden
}

button,
input {
  font: inherit
}

button {
  color: inherit
}

.assistant-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: #020817
}

.reference-stage {
  position: absolute;
  inset: 0;
  background: url("assets/ai-assistant-reference.png") center/100% 100% no-repeat
}

.semantic-header,
.semantic-content {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.hotspots {
  position: absolute;
  inset: 0
}

.hotspot,
.quick-actions button {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  outline: none
}

.hotspot:focus-visible,
.quick-actions button:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(0, 200, 255, .6)
}

.profile-control {
  left: 82.7%;
  top: 2.2%;
  width: 15.9%;
  height: 7.3%
}

.notification-control {
  left: 72.9%;
  top: 4.1%;
  width: 3.1%;
  height: 4.2%
}

.language-control {
  left: 77.5%;
  top: 4.2%;
  width: 3.1%;
  height: 4.1%
}

.keyboard-control {
  left: 18.2%;
  top: 66.4%;
  width: 4.7%;
  height: 7.5%
}

.microphone-control {
  left: 50%;
  top: 61.25%;
  width: 136px;
  height: 136px;
  transform: translateX(-50%);
  overflow: visible
}

.settings-control {
  left: 76.8%;
  top: 66.2%;
  width: 5.1%;
  height: 7.8%
}

.active-ring {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 146px;
  height: 146px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 24px var(--cyan), inset 0 0 20px var(--purple);
  animation: micPulse 1.1s ease-in-out infinite;
  pointer-events: none
}

.microphone-control.listening .active-ring {
  display: block
}

.quick-actions {
  position: absolute;
  left: 11.55%;
  top: 81.15%;
  width: 77%;
  height: 9.1%;
  display: grid;
  grid-template-columns: 1.08fr .97fr .95fr .93fr .9fr;
  gap: 1%
}

.quick-actions button {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  transition: transform .2s, box-shadow .2s, background .2s
}

.quick-actions button:hover {
  transform: translateY(-4px);
  background: rgba(30, 80, 180, .08);
  box-shadow: 0 10px 28px rgba(0, 105, 255, .2)
}

.popover,
.keyboard-panel {
  position: absolute;
  z-index: 10;
  background: rgba(2, 10, 28, .94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px #000, 0 0 25px rgba(33, 110, 255, .2);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .2s
}

.popover.open,
.keyboard-panel.open {
  opacity: 1;
  visibility: visible;
  transform: none
}

.profile-menu {
  right: 2.8%;
  top: 10%;
  width: 205px;
  padding: 16px;
  border-radius: 18px;
  display: grid;
  gap: 10px
}

.profile-menu small {
  color: #00e5b0
}

.profile-menu button {
  background: rgba(40, 90, 170, .14);
  border: 1px solid rgba(100, 160, 255, .16);
  padding: 9px;
  border-radius: 10px;
  text-align: left
}

.settings-menu {
  right: 17%;
  bottom: 20%;
  width: 260px;
  padding: 17px;
  border-radius: 18px;
  display: grid;
  gap: 13px;
  font-size: 13px
}

.settings-menu label {
  display: grid;
  gap: 8px
}

.settings-menu .open-gemini-key-modal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(155, 77, 255, 0.18));
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #f0f7ff;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s ease;
}

.settings-menu .open-gemini-key-modal:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(155, 77, 255, 0.3));
  border-color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
  transform: translateY(-1px);
}

.settings-key-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffaa00;
  box-shadow: 0 0 8px #ffaa00;
  flex-shrink: 0;
}

.settings-key-badge.active {
  background: #00e5b0;
  box-shadow: 0 0 10px #00e5b0;
}

.keyboard-panel {
  left: 50%;
  bottom: 22%;
  width: min(600px, 80vw);
  padding: 18px;
  border-radius: 22px;
  transform: translate(-50%, 10px)
}

.keyboard-panel.open {
  transform: translate(-50%, 0)
}

.keyboard-panel label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600
}

.keyboard-panel div {
  display: flex;
  gap: 8px
}

.keyboard-panel input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: #061126;
  color: white;
  border-radius: 13px;
  padding: 13px 15px;
  outline: none
}

.keyboard-panel button {
  border: 0;
  border-radius: 13px;
  padding: 0 22px;
  background: linear-gradient(135deg, #168cff, #7c3cff);
  cursor: pointer
}

.toast {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 4%;
  padding: 12px 20px;
  background: rgba(3, 13, 34, .92);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 30px #000;
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition: .25s
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

.mobile-ui {
  display: none
}

@keyframes pulse {
  50% {
    transform: scale(1.09);
    opacity: .65
  }
}

@keyframes micPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: .65
  }
}

@media (max-width:800px),
(max-aspect-ratio:1/1) {
  body {
    overflow: auto
  }

  .assistant-app {
    height: auto;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 50% 22%, #102d79 0, #071633 29%, #020817 64%)
  }

  .reference-stage,
  .hotspots {
    display: none
  }

  .mobile-ui {
    display: block;
    position: relative;
    min-height: 100vh;
    padding: 20px 18px 28px;
    background: radial-gradient(circle at 65% 22%, rgba(32, 89, 196, .42), transparent 32%), radial-gradient(circle at 20% 48%, rgba(104, 42, 196, .18), transparent 25%), linear-gradient(#030918, #06132d 52%, #020817)
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px
  }

  .spark {
    font-size: 30px;
    color: #42cfff;
    text-shadow: 0 0 16px #7c3cff
  }

  .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #0c2453
  }

  .mobile-hero {
    margin-top: 56px;
    max-width: 410px
  }

  .mobile-hero>p:first-child {
    color: #cbd4e9
  }

  .mobile-hero h2 {
    font-size: clamp(42px, 12vw, 64px);
    line-height: 1.05;
    margin: 10px 0;
    background: linear-gradient(110deg, #27c4ff, #8d55ff);
    background-clip: text;
    color: transparent
  }

  .muted {
    color: #b5bfd4;
    line-height: 1.6
  }

  .ready {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 11px 16px;
    background: rgba(8, 32, 70, .65);
    border: 1px solid rgba(100, 160, 255, .18);
    border-radius: 30px
  }

  .ready i {
    width: 9px;
    height: 9px;
    background: #00e5b0;
    border-radius: 50%;
    box-shadow: 0 0 12px #00e5b0
  }

  .mobile-orb {
    width: 210px;
    height: 210px;
    margin: 24px auto;
    border: 2px solid #18a8ff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #391786 0 18%, #08163d 45%, #020817 70%);
    box-shadow: 0 0 20px #00c8ff, inset 0 0 35px #7c3cff, 0 0 70px rgba(32, 97, 255, .65);
    animation: pulse 3s ease-in-out infinite
  }

  .mobile-orb:before,
  .mobile-orb:after {
    content: "";
    position: absolute;
    width: 260px;
    height: 95px;
    border: 1px solid #6f71ff;
    border-radius: 50%;
    transform: rotate(18deg)
  }

  .mobile-orb:after {
    transform: rotate(-25deg)
  }

  .mobile-orb span {
    font-size: 80px;
    text-shadow: 0 0 18px white, 0 0 35px #8d4dff
  }

  .mobile-summary,
  .mobile-voice {
    background: linear-gradient(135deg, rgba(10, 34, 76, .88), rgba(5, 16, 47, .88));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    backdrop-filter: blur(14px)
  }

  .mobile-summary {
    padding: 18px
  }

  .mobile-summary h3 {
    margin: 0 0 14px
  }

  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
  }

  .stats article {
    min-height: 100px;
    padding: 13px;
    border: 1px solid rgba(92, 140, 235, .14);
    border-radius: 15px;
    background: rgba(6, 21, 51, .7);
    display: flex;
    flex-direction: column
  }

  .stats strong {
    font-size: 27px;
    margin-top: 5px
  }

  .stats i {
    height: 3px;
    margin-top: auto;
    border-radius: 5px;
    box-shadow: 0 0 8px currentColor
  }

  .blue {
    background: #168cff;
    color: #168cff
  }

  .purple {
    background: #9b4dff;
    color: #9b4dff
  }

  .green {
    background: #00e5b0;
    color: #00e5b0
  }

  .orange {
    background: #ff9d00;
    color: #ff9d00
  }

  .mobile-voice {
    position: relative;
    margin-top: 18px;
    height: 180px;
    display: grid;
    place-items: center
  }

  .mobile-mic {
    z-index: 1;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #39dfff;
    background: #081635;
    font-size: 38px;
    box-shadow: 0 0 18px #00c8ff, 0 0 25px #8e3fff, inset 0 0 20px #283a88
  }

  .mobile-voice p {
    position: absolute;
    bottom: 7px;
    margin: 0;
    color: #dae2f5;
    font-size: 14px
  }

  .mobile-wave {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 55px;
    background: repeating-linear-gradient(90deg, transparent 0 5px, #2caaff 6px 8px, transparent 9px 12px);
    mask: linear-gradient(transparent, #000 35% 65%, transparent);
    animation: wave .8s linear infinite
  }

  .mobile-actions {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 18px 1px 8px;
    scrollbar-width: none
  }

  .mobile-actions button {
    flex: 0 0 190px;
    height: 82px;
    border: 1px solid rgba(86, 143, 240, .28);
    border-radius: 18px;
    background: rgba(7, 25, 60, .82);
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    font-size: 25px;
    padding: 14px;
    color: #33adff
  }

  .mobile-actions span {
    color: white;
    font-size: 14px;
    line-height: 1.4
  }

  .mobile-ui footer {
    text-align: center;
    color: #99a6c2;
    font-size: 12px;
    margin-top: 24px
  }

  .profile-menu {
    top: 70px
  }

  .keyboard-panel {
    position: fixed;
    bottom: 20px
  }

  .settings-menu {
    position: fixed;
    right: 20px;
    bottom: 20px
  }

  .toast {
    position: fixed;
    bottom: 18px;
    white-space: nowrap
  }
}

@keyframes wave {
  50% {
    transform: scaleY(.55)
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }
}

/* Live functional overlays retain the reference artwork while replacing its demo data. */
.reference-stage {
  z-index: 0
}

.hotspots {
  z-index: 4
}

.dynamic-overlay,
.live-state-label,
.live-waveform {
  position: absolute;
  z-index: 2;
  pointer-events: none
}

.dynamic-time {
  left: 675px;
  top: 25px;
  width: 190px;
  text-align: center;
  background: #020714;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25
}

.dynamic-time small {
  display: block;
  color: #a9b4ce;
  font-size: 14px;
  font-weight: 400
}

.dynamic-greeting {
  left: 62px;
  top: 151px;
  width: 390px;
  height: 48px;
  padding: 8px;
  background: linear-gradient(90deg, #071021 88%, transparent);
  font-size: 20px;
  color: #dce3f3
}

.dynamic-profile-pill {
  left: 1270px;
  top: 22px;
  width: 244px;
  height: 75px;
  background: linear-gradient(135deg, rgba(6, 18, 48, 0.96) 0%, rgba(2, 8, 24, 0.98) 100%);
  border: 1px solid rgba(80, 150, 255, 0.35);
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dynamic-profile-pill .dynamic-avatar {
  position: relative;
  left: auto;
  top: auto;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a224f, #153e85);
  display: grid;
  place-items: center;
  border: 2px solid #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}

.dynamic-profile-pill .dynamic-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dynamic-profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dynamic-profile-info strong {
  font-size: 15px;
  font-weight: 700;
  color: #f5f8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.dynamic-profile-info small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #00e5b0;
  font-size: 12px;
  font-weight: 500;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5b0;
  box-shadow: 0 0 8px #00e5b0;
  display: inline-block;
}

.dynamic-stats {
  position: absolute;
  left: 1107px;
  top: 234px;
  width: 378px;
  height: 260px;
  pointer-events: none
}

.dynamic-stats strong {
  position: absolute;
  display: block;
  width: 75px;
  height: 38px;
  padding: 3px;
  background: #0a1838;
  font-size: 27px;
  font-weight: 500
}

.dynamic-stats strong:nth-child(1) {
  left: 26px;
  top: 44px
}

.dynamic-stats strong:nth-child(2) {
  left: 204px;
  top: 44px
}

.dynamic-stats strong:nth-child(3) {
  left: 26px;
  top: 171px
}

.dynamic-stats strong:nth-child(4) {
  left: 204px;
  top: 171px
}

.dynamic-stats span {
  position: absolute;
  left: 204px;
  top: 143px;
  width: 105px;
  padding: 1px 3px;
  background: #0a1838;
  font-size: 14px
}

.notification-control:after {
  display: none !important;
}

.live-waveform {
  left: 345px;
  top: 652px;
  width: 846px;
  height: 92px;
  opacity: .92
}

.live-state-label {
  left: 615px;
  top: 761px;
  width: 310px;
  margin: 0;
  padding: 3px;
  text-align: center;
  background: #0a1533;
  color: #edf2ff;
  font-size: 16px
}

.assistant-app[data-assistant-state="error"] .active-ring {
  display: block;
  border-color: #ff4f6d;
  box-shadow: 0 0 24px #ff4f6d
}

.assistant-app[data-assistant-state="speaking"] .active-ring,
.assistant-app[data-assistant-state="thinking"] .active-ring {
  display: block
}

.profile-menu a,
.settings-menu button {
  color: #fff;
  text-decoration: none;
  background: rgba(40, 90, 170, .14);
  border: 1px solid rgba(100, 160, 255, .16);
  padding: 9px;
  border-radius: 10px;
  text-align: left
}

.settings-menu p {
  margin: 0;
  color: #aebbd3;
  font-size: 13px;
  line-height: 1.45
}

.keyboard-panel {
  max-height: 440px
}

.keyboard-panel>label {
  font-size: 16px
}

.keyboard-row {
  display: flex;
  gap: 8px
}

.transcript-messages {
  display: block !important;
  max-height: 260px;
  margin-bottom: 12px;
  overflow: auto;
  scrollbar-width: thin
}

.transcript-messages p {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.4;
  white-space: pre-wrap
}

.transcript-messages strong {
  display: block;
  margin-bottom: 3px;
  color: #5ad7ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em
}

.transcript-user {
  margin-left: 15% !important;
  background: #15346c
}

.transcript-assistant {
  margin-right: 15% !important;
  background: #081a3b
}

/* Gemini API Key Card Modal Overlay */
.gemini-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(1, 4, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), visibility .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gemini-modal-overlay.open {
  opacity: 1;
  visibility: visible
}

.gemini-card-modal {
  position: relative;
  width: min(520px, 92vw);
  background: linear-gradient(150deg, #091a3e 0%, #040e24 55%, #020817 100%);
  border: 1px solid rgba(90, 170, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 45px rgba(0, 180, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 28px;
  overflow: hidden;
  transform: scale(0.92) translateY(16px);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gemini-modal-overlay.open .gemini-card-modal {
  transform: scale(1) translateY(0)
}

.modal-glow-bg {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.22) 0%, rgba(155, 77, 255, 0.15) 50%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px
}

.gemini-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(155, 77, 255, 0.25));
  border: 1px solid rgba(100, 180, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
  flex-shrink: 0;
}

.modal-title-group h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #f5f8ff;
  letter-spacing: -0.01em
}

.modal-subtitle {
  margin: 0;
  font-size: 12.5px;
  color: #a1b2d4;
  line-height: 1.45
}

.modal-close-btn {
  background: rgba(20, 45, 95, 0.4);
  border: 1px solid rgba(100, 160, 255, 0.2);
  color: #9eb0d2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .18s ease;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 60, 90, 0.25);
  border-color: rgba(255, 80, 110, 0.5);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  gap: 18px
}

.key-status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(6, 18, 46, 0.7);
  border: 1px solid rgba(80, 150, 255, 0.2);
  border-radius: 16px;
  transition: all .2s ease;
}

.key-status-card.active {
  background: rgba(0, 229, 176, 0.08);
  border-color: rgba(0, 229, 176, 0.35);
}

.status-icon-wrap {
  position: relative;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0
}

.status-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffaa00;
  box-shadow: 0 0 8px #ffaa00
}

.key-status-card.active .status-circle {
  background: #00e5b0;
  box-shadow: 0 0 10px #00e5b0
}

.status-ping {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ffaa00;
  opacity: 0.6;
  animation: statusPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.key-status-card.active .status-ping {
  border-color: #00e5b0
}

@keyframes statusPing {

  75%,
  100% {
    transform: scale(1.8);
    opacity: 0
  }
}

.status-info {
  flex: 1;
  min-width: 0
}

.status-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #f0f5ff;
  margin-bottom: 2px
}

.status-info p {
  margin: 0;
  font-size: 12px;
  color: #94a6cb;
  line-height: 1.4
}

.modal-field {
  display: grid;
  gap: 8px
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px
}

.field-label-row label {
  font-size: 13px;
  font-weight: 600;
  color: #d5e2fc
}

.get-key-link {
  font-size: 12px;
  color: #00e5ff;
  text-decoration: none;
  transition: color .18s ease;
}

.get-key-link:hover {
  color: #7ce9ff;
  text-decoration: underline
}

.key-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.key-input-container input {
  width: 100%;
  background: #040d22;
  border: 1px solid rgba(90, 160, 255, 0.32);
  border-radius: 14px;
  padding: 13px 44px 13px 15px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.key-input-container input:focus {
  border-color: #00e5ff;
  background: #061330;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18), 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-toggle-eye {
  position: absolute;
  right: 10px;
  background: transparent;
  border: 0;
  color: #8297bf;
  cursor: pointer;
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transition: color .18s;
}

.btn-toggle-eye:hover {
  color: #fff
}

.key-validation-feedback {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  display: none;
  animation: fadeSlideDown .2s ease;
}

.key-validation-feedback.success {
  display: block;
  background: rgba(0, 229, 176, 0.12);
  border: 1px solid rgba(0, 229, 176, 0.35);
  color: #00f2bb;
}

.key-validation-feedback.error {
  display: block;
  background: rgba(255, 75, 95, 0.12);
  border: 1px solid rgba(255, 75, 95, 0.35);
  color: #ff788c;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.modal-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(80, 140, 255, 0.15);
}

.modal-footer-right {
  display: flex;
  gap: 10px;
  align-items: center
}

.modal-btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-test {
  background: rgba(20, 50, 110, 0.5);
  border: 1px solid rgba(100, 165, 255, 0.3);
  color: #dbe6fd;
}

.btn-test:hover {
  background: rgba(30, 70, 150, 0.7);
  border-color: rgba(100, 180, 255, 0.6);
  color: #fff;
}

.btn-danger {
  background: rgba(255, 60, 90, 0.15);
  border: 1px solid rgba(255, 80, 110, 0.4);
  color: #ff8597;
}

.btn-danger:hover {
  background: rgba(255, 60, 90, 0.3);
  border-color: #ff4f6d;
  color: #fff;
}

.btn-save {
  background: linear-gradient(135deg, #00b8ff 0%, #7c3cff 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 184, 255, 0.35);
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 184, 255, 0.5), 0 0 16px rgba(124, 60, 255, 0.4);
}

.btn-save:active {
  transform: scale(0.98)
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #00e5ff;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
  display: inline-block;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg)
  }
}

/* Preserve the original reference canvas instead of stretching it to the viewport. */
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #01040d
}

body {
  position: relative
}

.assistant-app {
  position: absolute;
  left: var(--canvas-left, 0px);
  top: var(--canvas-top, 0px);
  width: 1536px;
  height: 1024px;
  min-height: 0;
  transform: scale(var(--canvas-scale, 1));
  transform-origin: top left;
}

@media (max-width:800px),
(max-aspect-ratio:1/1) {
  body {
    overflow: hidden
  }

  .assistant-app {
    width: 1536px;
    height: 1024px;
    min-height: 0;
    background: #020817
  }

  .reference-stage,
  .hotspots {
    display: block !important
  }

  .mobile-ui {
    display: none !important
  }

  .profile-menu {
    position: absolute;
    top: 10%;
    right: 2.8%
  }

  .settings-menu {
    position: absolute;
    right: 17%;
    bottom: 20%
  }

  .keyboard-panel {
    position: absolute;
    bottom: 22%
  }

  .toast {
    position: absolute;
    bottom: 4%
  }
}

/* ====================================================
   Cyber Glassmorphism Authentication Portal (Sign In / Sign Up)
   ==================================================== */
/* ====================================================
   JARVIS 2049 CINEMATIC AI OPERATING SYSTEM AUTH UI
   ==================================================== */
.auth-page-body {
  min-height: 100vh;
  width: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  background: #01040a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f0f7ff;
  position: relative;
  box-sizing: border-box;
  perspective: 1200px;
}

/* Full-Screen Pure Video Background Layer (Crisp & High Definition) */
.jarvis-auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: #01040a;
}

.jarvis-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

.jarvis-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(1, 4, 14, 0.2) 0%, rgba(1, 3, 10, 0.58) 100%);
}

.jarvis-bg-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0, 229, 255, 0.012) 3px, transparent 4px);
  opacity: 0.25;
}

.jarvis-bg-grid-mesh {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  background-image: linear-gradient(to right, rgba(0, 200, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 50%, black 45%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 45%, transparent 90%);
}

.jarvis-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* TOP CINEMATIC HUD BAR (REAL-TIME DATE & JARVIS DATA) */
.jarvis-top-hud {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(2, 12, 34, 0.88) 0%, rgba(4, 20, 54, 0.8) 50%, rgba(2, 12, 34, 0.88) 100%);
  border: 1px solid rgba(0, 229, 255, 0.38);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #78a1d4;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 10px;
}

.top-hud-left,
.top-hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-hud-brand {
  color: #00e5ff;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
  font-size: 9.5px;
  color: #bce1ff;
  font-weight: 700;
}

.top-hud-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5b0;
  box-shadow: 0 0 8px #00e5b0;
  animation: statusDotPing 1.8s infinite;
}

.top-hud-date {
  color: #00f0ff;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-hud-time {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-hud-tag {
  color: #8bb0e4;
  font-size: 9.5px;
}

.top-hud-tag strong {
  color: #00f0ff;
}

/* MAIN ASYMMETRIC 3D HUD CONTAINER */
.jarvis-auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

/* WIDGETS & COMMAND LAYOUT */
.jarvis-3d-layout {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

/* LEFT SATELLITE HUD PANEL (JARVIS AI CORE) WITH DEDICATED 3D STAGE & WIDGETS */
.jarvis-core-card {
  position: relative;
  background: linear-gradient(160deg, rgba(2, 10, 30, 0.82) 0%, rgba(1, 6, 20, 0.92) 100%);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 20px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 0 45px rgba(0, 140, 255, 0.28), 0 25px 70px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  gap: 12px;
}

.jarvis-core-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff, #0077ff, transparent);
  animation: laserSweep 4s ease-in-out infinite;
  z-index: 4;
}

@keyframes laserSweep {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Dedicated Holographic 3D Video Stage */
.jarvis-3d-stage {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  margin: 4px auto;
}

.jarvis-stage-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.45) 0%, rgba(0, 100, 255, 0.15) 60%, transparent 80%);
  filter: blur(14px);
  animation: reactorBreath 3s ease-in-out infinite alternate;
}

.jarvis-stage-viewport {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.85);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.5), inset 0 0 20px rgba(0, 140, 255, 0.35);
  overflow: hidden;
  background: radial-gradient(circle, rgba(6, 18, 50, 0.6) 0%, rgba(2, 8, 24, 0.95) 100%);
  display: grid;
  place-items: center;
}

.jarvis-stage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter: contrast(1.15) brightness(1.08);
}

.jarvis-stage-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 229, 255, 0.7);
  animation: stageRingSpin 22s linear infinite;
  pointer-events: none;
}

@keyframes stageRingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Titles & Subtitles with Clear Contrast */
.jarvis-brand-wrap {
  position: relative;
  z-index: 3;
}

.jarvis-brand-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: #ffffff;
  margin: 0 0 2px;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.8), 0 0 35px rgba(0, 140, 255, 0.4);
  text-transform: uppercase;
}

.jarvis-brand-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #9ec2ff;
  margin: 0 0 4px;
  letter-spacing: 0.03em;
  text-shadow: 0 0 8px rgba(0, 180, 255, 0.35);
}

.jarvis-brand-quote {
  font-size: 10.5px;
  font-style: italic;
  color: #7397c7;
  line-height: 1.45;
  margin: 0;
  max-width: 270px;
}

/* Audio Oscilloscope / Equalizer Widget */
.jarvis-audio-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 22px;
  margin: 0 auto;
  padding: 3px 12px;
  background: rgba(0, 24, 60, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.viz-bar {
  width: 3px;
  height: 6px;
  background: linear-gradient(180deg, #00f0ff 0%, #0066ff 100%);
  border-radius: 3px;
  box-shadow: 0 0 8px #00e5ff;
  animation: audioWave 1.3s ease-in-out infinite alternate;
}

.viz-bar:nth-child(1) {
  animation-delay: 0.1s;
  height: 7px;
}

.viz-bar:nth-child(2) {
  animation-delay: 0.3s;
  height: 14px;
}

.viz-bar:nth-child(3) {
  animation-delay: 0.5s;
  height: 18px;
}

.viz-bar:nth-child(4) {
  animation-delay: 0.2s;
  height: 12px;
}

.viz-bar:nth-child(5) {
  animation-delay: 0.4s;
  height: 16px;
}

.viz-bar:nth-child(6) {
  animation-delay: 0.6s;
  height: 10px;
}

.viz-bar:nth-child(7) {
  animation-delay: 0.25s;
  height: 15px;
}

.viz-bar:nth-child(8) {
  animation-delay: 0.45s;
  height: 8px;
}

@keyframes audioWave {
  0% {
    transform: scaleY(0.4);
    opacity: 0.6;
  }

  50% {
    transform: scaleY(1.3);
    opacity: 1;
  }

  100% {
    transform: scaleY(0.5);
    opacity: 0.7;
  }
}

.jarvis-audio-visualizer.active .viz-bar {
  animation-duration: 0.5s;
  background: linear-gradient(180deg, #ff00ea 0%, #00e5ff 100%);
  box-shadow: 0 0 12px #ff00ea;
}

/* Unique Holographic HUD Telemetry Widgets Layout */
.jarvis-telemetry-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 280px;
}

.telemetry-node {
  background: linear-gradient(145deg, rgba(4, 24, 64, 0.75) 0%, rgba(2, 14, 40, 0.88) 100%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 6px 10px;
  text-align: left;
  font-family: ui-monospace, monospace;
}

.telemetry-node .label {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  color: #7ea7dc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.telemetry-node .val {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.55);
  margin-top: 2px;
}

.telemetry-mini-bar {
  width: 100%;
  height: 3px;
  background: rgba(0, 180, 255, 0.2);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.telemetry-mini-fill {
  height: 100%;
  width: 92%;
  background: linear-gradient(90deg, #0099ff, #00f0ff);
  box-shadow: 0 0 6px #00f0ff;
}

/* AI System Online Status Badge */
.jarvis-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(0, 28, 68, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #00f0ff;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

.jarvis-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5b0;
  box-shadow: 0 0 10px #00e5b0;
  position: relative;
}

.jarvis-status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #00e5b0;
  animation: statusDotPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* HUD Tech Corner Accents with Bright Lighting */
.hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 6px #00e5ff);
}

.hud-corner.tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid #00e5ff;
  border-left: 2px solid #00e5ff;
}

.hud-corner.tr {
  top: 8px;
  right: 8px;
  border-top: 2px solid #00e5ff;
  border-right: 2px solid #00e5ff;
}

.hud-corner.bl {
  bottom: 8px;
  left: 8px;
  border-bottom: 2px solid #00e5ff;
  border-left: 2px solid #00e5ff;
}

.hud-corner.br {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid #00e5ff;
  border-right: 2px solid #00e5ff;
}

/* Futuristic Center Holographic Focus */
.jarvis-model-video-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.jarvis-model-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.6) 0%, rgba(0, 110, 255, 0.3) 55%, transparent 75%);
  filter: blur(16px);
  animation: reactorBreath 3s ease-in-out infinite alternate;
}

.jarvis-model-frame {
  position: relative;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.9);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.7), inset 0 0 20px rgba(0, 180, 255, 0.45);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(2, 10, 28, 0.4);
}

.jarvis-model-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: contrast(1.2) brightness(1.15);
  display: block;
}

.jarvis-model-scanline {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0, 229, 255, 0.06) 3px, transparent 4px);
  pointer-events: none;
}

.jarvis-model-tech-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 240, 255, 0.85);
  pointer-events: none;
  animation: modelRingSpin 18s linear infinite;
}

@keyframes modelRingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Titles & Slogan with Lighting Typography */
.jarvis-brand-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: #ffffff;
  margin: 2px 0 4px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.8), 0 0 45px rgba(0, 140, 255, 0.5);
  text-transform: uppercase;
}

.jarvis-brand-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #9ec2ff;
  margin: 0 0 10px;
  letter-spacing: 0.03em;
  text-shadow: 0 0 10px rgba(0, 180, 255, 0.4);
}

.jarvis-brand-quote {
  font-size: 11px;
  font-style: italic;
  color: #7397c7;
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 270px;
}

/* Audio Oscilloscope / Equalizer Widget */
.jarvis-audio-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(0, 24, 60, 0.5);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.viz-bar {
  width: 3.5px;
  height: 7px;
  background: linear-gradient(180deg, #00f0ff 0%, #0066ff 100%);
  border-radius: 3px;
  box-shadow: 0 0 8px #00e5ff;
  animation: audioWave 1.3s ease-in-out infinite alternate;
}

.viz-bar:nth-child(1) {
  animation-delay: 0.1s;
  height: 8px;
}

.viz-bar:nth-child(2) {
  animation-delay: 0.3s;
  height: 16px;
}

.viz-bar:nth-child(3) {
  animation-delay: 0.5s;
  height: 22px;
}

.viz-bar:nth-child(4) {
  animation-delay: 0.2s;
  height: 14px;
}

.viz-bar:nth-child(5) {
  animation-delay: 0.4s;
  height: 20px;
}

.viz-bar:nth-child(6) {
  animation-delay: 0.6s;
  height: 12px;
}

.viz-bar:nth-child(7) {
  animation-delay: 0.25s;
  height: 18px;
}

.viz-bar:nth-child(8) {
  animation-delay: 0.45s;
  height: 10px;
}

@keyframes audioWave {
  0% {
    transform: scaleY(0.4);
    opacity: 0.6;
  }

  50% {
    transform: scaleY(1.3);
    opacity: 1;
  }

  100% {
    transform: scaleY(0.5);
    opacity: 0.7;
  }
}

.jarvis-audio-visualizer.active .viz-bar {
  animation-duration: 0.5s;
  background: linear-gradient(180deg, #ff00ea 0%, #00e5ff 100%);
  box-shadow: 0 0 12px #ff00ea;
}

/* Hologram Projector Floor Pad */
.jarvis-holo-pad {
  position: relative;
  width: 130px;
  height: 30px;
  margin-bottom: 12px;
}

.holo-rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.75);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.6), inset 0 0 14px rgba(0, 140, 255, 0.5);
  transform: scaleY(0.35);
  animation: holoRingPulse 2.5s ease-in-out infinite alternate;
}

.holo-rings::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 229, 255, 0.9);
}

.holo-beam {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 38px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 229, 255, 0.18) 60%, rgba(0, 229, 255, 0.6) 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

@keyframes holoRingPulse {
  0% {
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
    border-color: rgba(0, 229, 255, 0.5);
  }

  100% {
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.9);
    border-color: rgba(0, 229, 255, 0.95);
  }
}

/* Real-Time Telemetry Matrix Grid with Glowing Readouts */
.jarvis-telemetry-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  margin-bottom: 12px;
}

.telemetry-node {
  background: linear-gradient(145deg, rgba(0, 28, 70, 0.75) 0%, rgba(0, 16, 46, 0.85) 100%);
  border: 1px solid rgba(0, 229, 255, 0.32);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: left;
  font-family: ui-monospace, monospace;
}

.telemetry-node .label {
  display: block;
  font-size: 9px;
  color: #78a1d4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.telemetry-node .val {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
  margin-top: 2px;
}

/* AI System Online Status Badge */
.jarvis-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(0, 28, 68, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #00f0ff;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

.jarvis-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5b0;
  box-shadow: 0 0 10px #00e5b0;
  position: relative;
}

.jarvis-status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #00e5b0;
  animation: statusDotPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* RIGHT COMMAND CENTER PANEL WITH LASER BORDER & LIGHTING INTERIOR */
.jarvis-login-card {
  position: relative;
  background: linear-gradient(145deg, rgba(3, 14, 40, 0.9) 0%, rgba(1, 7, 24, 0.98) 100%);
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 20px;
  padding: 34px 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0 55px rgba(0, 150, 255, 0.32), 0 25px 70px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow: hidden;
}

.jarvis-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff, #0077ff, transparent);
  animation: laserSweep 4s ease-in-out infinite 2s;
}

.jarvis-form-header {
  margin-bottom: 16px;
}

.jarvis-form-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 25px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.jarvis-form-subtitle {
  font-size: 12.5px;
  color: #8bb0e4;
  margin: 0;
  line-height: 1.4;
}

/* Method Switcher Tabs (Voice Password vs Type Password) with Neon Active Glow */
.jarvis-method-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.jarvis-method-btn {
  border: 1px solid rgba(80, 170, 255, 0.28);
  background: rgba(4, 18, 48, 0.7);
  color: #94b1db;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 12px;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .22s ease;
}

.jarvis-method-btn:hover {
  color: #ffffff;
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(8, 32, 80, 0.75);
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.3);
}

.jarvis-method-btn.active {
  background: linear-gradient(135deg, #0b66e8 0%, #0099ff 100%);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 160, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Alerts / Error Messages */
.auth-alert {
  margin-bottom: 14px;
  animation: authFadeIn .25s ease;
}

.alert-msg {
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.45;
}

.alert-msg.status {
  background: rgba(0, 229, 176, 0.16);
  border: 1px solid rgba(0, 229, 176, 0.5);
  color: #00f2bb;
  box-shadow: 0 0 15px rgba(0, 229, 176, 0.2);
}

.alert-msg.error {
  background: rgba(255, 60, 90, 0.16);
  border: 1px solid rgba(255, 80, 110, 0.5);
  color: #ff7c92;
  box-shadow: 0 0 15px rgba(255, 80, 110, 0.2);
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Holographic Voice Authentication Pod with Circular Radar Rings */
.jarvis-voice-box {
  background: linear-gradient(145deg, rgba(3, 18, 48, 0.9) 0%, rgba(2, 10, 32, 0.95) 100%);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 16px;
  padding: 24px 18px 18px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: inset 0 0 35px rgba(0, 150, 255, 0.12), 0 0 20px rgba(0, 180, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.jarvis-mic-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}

.jarvis-mic-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #00f0ff;
  background: radial-gradient(circle, rgba(16, 60, 140, 0.98) 0%, rgba(4, 20, 56, 0.98) 100%);
  color: #00f0ff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.55), inset 0 0 18px rgba(0, 229, 255, 0.35);
  transition: all .25s ease;
  position: relative;
  z-index: 2;
}

.jarvis-mic-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.8), inset 0 0 22px rgba(0, 229, 255, 0.5);
}

.jarvis-mic-btn.listening {
  border-color: #ff00e5;
  color: #ff00e5;
  background: radial-gradient(circle, rgba(100, 20, 100, 0.98) 0%, rgba(36, 4, 48, 0.98) 100%);
  box-shadow: 0 0 40px rgba(255, 0, 229, 0.75), inset 0 0 22px rgba(255, 0, 229, 0.45);
}

.jarvis-mic-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #00e5ff;
  opacity: 0;
  pointer-events: none;
}

.jarvis-mic-btn.listening+.jarvis-mic-pulse {
  animation: jarvisMicPulse 1.2s ease-out infinite;
}

@keyframes jarvisMicPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
    border-color: #00e5ff;
  }

  50% {
    border-color: #ff00e5;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
    border-color: #ff00e5;
  }
}

.jarvis-voice-status {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 4px;
  min-height: 18px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.jarvis-voice-status.listening {
  color: #00f0ff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
}

.jarvis-voice-status.processing {
  color: #c47aff;
  text-shadow: 0 0 12px rgba(196, 122, 255, 0.8);
}

.jarvis-voice-hint {
  font-size: 11.5px;
  color: #8cb2e4;
  margin: 0;
}

/* Type Password Section with Glowing Cyber Inputs */
.jarvis-type-box {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.jarvis-type-box label {
  font-size: 11.5px;
  font-weight: 700;
  color: #d4e6ff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.jarvis-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.jarvis-input-icon {
  position: absolute;
  left: 14px;
  color: #00e5ff;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.5));
}

.jarvis-input-wrap input {
  width: 100%;
  background: rgba(4, 18, 48, 0.88);
  border: 1px solid rgba(0, 200, 255, 0.35);
  border-radius: 11px;
  padding: 12px 42px 12px 42px;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: all .22s ease;
  box-sizing: border-box;
}

.jarvis-input-wrap input:focus {
  border-color: #00f0ff;
  background: rgba(6, 28, 72, 0.96);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.22), 0 0 20px rgba(0, 229, 255, 0.35);
}

.jarvis-eye-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: 0;
  color: #86a4d2;
  cursor: pointer;
  padding: 6px;
  display: grid;
  place-items: center;
  transition: all .18s;
}

.jarvis-eye-toggle:hover {
  color: #00f0ff;
  text-shadow: 0 0 8px #00f0ff;
}

/* Security Strength Visualizer Indicator */
.security-strength-bar {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.strength-seg {
  flex: 1;
  height: 3.5px;
  background: rgba(0, 180, 255, 0.2);
  border-radius: 3px;
  transition: all .3s ease;
}

.strength-seg.active {
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

/* Vibrant Neon-Blue SIGN IN Button with Moving Laser Shimmer */
.jarvis-btn-primary {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(90deg, #0b61e2 0%, #0084ff 50%, #00a8ff 100%);
  box-shadow: 0 0 30px rgba(0, 140, 255, 0.65), 0 4px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .2s ease;
  overflow: hidden;
}

.jarvis-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: btnShimmer 3.5s infinite;
}

@keyframes btnShimmer {
  0% {
    left: -100%;
  }

  30% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.jarvis-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 45px rgba(0, 150, 255, 0.85), 0 6px 25px rgba(0, 0, 0, 0.6);
  background: linear-gradient(90deg, #0f6fff 0%, #1595ff 50%, #1ec5ff 100%);
}

.jarvis-btn-primary:active {
  transform: scale(0.98);
}

.jarvis-btn-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  transition: transform .2s ease;
}

.jarvis-btn-primary:hover .jarvis-btn-arrow {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.35);
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
  display: inline-block;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* OR Divider & Sign Up Toggle */
.jarvis-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #6084b3;
  text-transform: uppercase;
}

.jarvis-or-divider::before,
.jarvis-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 229, 255, 0.22);
}

.jarvis-signup-link {
  font-size: 12px;
  color: #94b1db;
  text-align: center;
  margin: 0;
}

.jarvis-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: #00f0ff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
}

.jarvis-link-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
  text-decoration: underline;
}

/* Sign Up Form */
.jarvis-signup-form {
  display: grid;
  gap: 13px;
}

.jarvis-form-group {
  display: grid;
  gap: 5px;
}

.jarvis-form-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: #d4e6ff;
}

/* BOTTOM SYSTEM TELEMETRY DOCK BAR (5 Modular Cards) */
.jarvis-system-dock {
  width: 100%;
  max-width: 1120px;
  margin-top: 16px;
  z-index: 2;
  background: linear-gradient(145deg, rgba(3, 14, 40, 0.88) 0%, rgba(1, 7, 24, 0.94) 100%);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 15px;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 180, 255, 0.18);
  box-sizing: border-box;
}

.dock-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: ui-monospace, monospace;
}

.dock-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00f0ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  transition: all .25s ease;
}

.dock-item:hover .dock-icon {
  background: rgba(0, 229, 255, 0.25);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.55);
}

.dock-text strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.dock-text span {
  display: block;
  font-size: 9.5px;
  color: #89aee2;
  line-height: 1.3;
}

/* FOOTER STATUS PILL */
.jarvis-footer-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 18px;
  border-radius: 999px;
  background: rgba(3, 12, 32, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #94b1db;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 180, 255, 0.18);
}

.jarvis-footer-pill span.pill-spark {
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff;
}

/* FULL-SCREEN JARVIS STARTUP INTRO VIDEO OVERLAY (jarvis_intro.mp4) */
.jarvis-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: introFadeIn 0.35s ease-out forwards;
}

@keyframes introFadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.jarvis-intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #000000;
}

.jarvis-intro-hud {
  position: absolute;
  bottom: 36px;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.jarvis-intro-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: rgba(2, 12, 34, 0.88);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  pointer-events: auto;
}

.jarvis-intro-status .pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e5b0;
  box-shadow: 0 0 10px #00e5b0;
  animation: statusDotPing 1.5s infinite;
}

.jarvis-skip-intro-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(0, 24, 60, 0.88);
  border: 1px solid rgba(0, 229, 255, 0.6);
  border-radius: 30px;
  color: #ffffff;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 22px rgba(0, 180, 255, 0.38);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.jarvis-skip-intro-btn:hover {
  background: linear-gradient(90deg, #0099ff, #00f0ff);
  border-color: #00f0ff;
  color: #01091a;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.85);
}

/* RESPONSIVE LAYOUT */
@media (max-width:920px) {
  .jarvis-3d-layout {
    grid-template-columns: 1fr;
  }

  .jarvis-system-dock {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width:560px) {
  .jarvis-top-hud {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .jarvis-system-dock {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .jarvis-brand-title {
    font-size: 24px;
  }

  .jarvis-intro-hud {
    flex-direction: column-reverse;
    gap: 12px;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
}

/* ====================================================
   Profile Edit Modal & Avatar Upload Styles
   ==================================================== */
.profile-card-modal {
  max-width: 480px;
}

.profile-avatar-picker-section {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.avatar-picker-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar-preview-circle {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a224f, #103473);
  border: 2px solid #00e5ff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35), inset 0 0 15px rgba(155, 77, 255, 0.3);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  cursor: pointer;
}

.avatar-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-camera-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 28px;
  background: rgba(2, 8, 23, 0.75);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: #00e5ff;
  transition: background .2s;
}

.avatar-preview-circle:hover .avatar-camera-badge {
  background: rgba(0, 229, 255, 0.85);
  color: #020817;
}

.btn-choose-photo {
  background: rgba(20, 50, 110, 0.4);
  border: 1px solid rgba(100, 160, 255, 0.3);
  color: #b8ccf2;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .18s ease;
}

.btn-choose-photo:hover {
  background: rgba(30, 70, 150, 0.6);
  border-color: #00e5ff;
  color: #fff;
}

.profile-fields-grid {
  display: grid;
  gap: 12px;
}

.profile-fields-grid .modal-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #c8d9f7;
  margin-bottom: 3px;
  display: block;
}

.creator-credit-note {
  font-size: 12px;
  color: #8fa5ce;
}

.creator-credit-note strong {
  color: #00e5ff;
}

.profile-menu-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08) !important;
  border: 1px solid rgba(0, 229, 255, 0.3) !important;
  color: #dbe9ff !important;
  font-weight: 600;
  padding: 10px 12px !important;
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s;
  text-align: left;
}

.profile-menu-action:hover {
  background: rgba(0, 229, 255, 0.18) !important;
  border-color: #00e5ff !important;
  color: #fff !important;
}

.creator-badge-dropdown {
  padding: 6px 8px;
  font-size: 11px;
  color: #94a6c8;
  border-top: 1px solid rgba(80, 140, 255, 0.15);
  border-bottom: 1px solid rgba(80, 140, 255, 0.15);
}

.creator-badge-dropdown strong {
  color: #00e5ff;
}

.dynamic-creator-badge {
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: rgba(2, 8, 23, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #00e5ff;
  letter-spacing: 0.02em;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}

/* ====================================================
   Advanced Memory & Projects Vault Modal System
   ==================================================== */
.memory-card-modal {
  width: min(860px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}

.memory-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.memory-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(80, 150, 255, 0.2);
  padding-bottom: 10px;
  flex-shrink: 0;
}

.memory-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #8fa3c7;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .18s ease;
}

.memory-tab-btn:hover {
  color: #e2ecff;
  background: rgba(20, 50, 110, 0.25);
}

.memory-tab-btn.active {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}

.memory-tab-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.18);
  color: #00e5ff;
}

.memory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.memory-search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.memory-search-input {
  width: 100%;
  background: rgba(6, 18, 48, 0.7);
  border: 1px solid rgba(80, 150, 255, 0.25);
  color: #f0f5ff;
  padding: 8px 14px 8px 34px;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}

.memory-search-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.memory-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #7892bd;
  pointer-events: none;
}

.memory-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.memory-chip {
  background: rgba(10, 25, 60, 0.6);
  border: 1px solid rgba(80, 140, 255, 0.2);
  color: #a1b4d8;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}

.memory-chip:hover {
  color: #fff;
  border-color: rgba(0, 229, 255, 0.4);
}

.memory-chip.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(155, 77, 255, 0.2));
  color: #00e5ff;
  border-color: #00e5ff;
}

.btn-add-memory {
  background: linear-gradient(135deg, #00b4d8, #7209b7);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-add-memory:hover {
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
}

.memory-scroll-area {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.memory-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.memory-scroll-area::-webkit-scrollbar-track {
  background: rgba(4, 14, 36, 0.5);
  border-radius: 4px;
}

.memory-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(80, 150, 255, 0.3);
  border-radius: 4px;
}

.memory-item-card {
  background: rgba(6, 20, 52, 0.65);
  border: 1px solid rgba(80, 150, 255, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s ease;
}

.memory-item-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.1);
}

.memory-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.memory-card-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.memory-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #f0f6ff;
  margin: 0;
}

.memory-meta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.badge-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.confidence-confirmed {
  background: rgba(0, 229, 176, 0.15);
  color: #00e5b0;
  border: 1px solid rgba(0, 229, 176, 0.4);
  box-shadow: 0 0 8px rgba(0, 229, 176, 0.25);
}

.confidence-high {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

.confidence-medium {
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.4);
}

.confidence-low {
  background: rgba(120, 146, 189, 0.15);
  color: #7892bd;
  border: 1px solid rgba(120, 146, 189, 0.3);
}

.category-pill {
  background: rgba(155, 77, 255, 0.15);
  color: #c78dff;
  border: 1px solid rgba(155, 77, 255, 0.35);
}

.project-tag-pill {
  background: rgba(0, 180, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 180, 255, 0.3);
}

.memory-card-body {
  font-size: 13px;
  color: #c8d7f0;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.memory-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #7892bd;
  border-top: 1px solid rgba(80, 150, 255, 0.12);
  padding-top: 8px;
}

.memory-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-mem-action {
  background: rgba(15, 35, 80, 0.5);
  border: 1px solid rgba(80, 150, 255, 0.25);
  color: #a1b5d8;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}

.btn-mem-action:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: #00e5ff;
  color: #fff;
}

.btn-mem-confirm {
  background: rgba(0, 229, 176, 0.12);
  border-color: rgba(0, 229, 176, 0.35);
  color: #00e5b0;
}

.btn-mem-confirm:hover {
  background: rgba(0, 229, 176, 0.25);
  border-color: #00e5b0;
  color: #fff;
}

.btn-mem-delete {
  background: rgba(255, 70, 90, 0.12);
  border-color: rgba(255, 70, 90, 0.3);
  color: #ff7888;
}

.btn-mem-delete:hover {
  background: rgba(255, 70, 90, 0.25);
  border-color: #ff465a;
  color: #fff;
}

/* Projects & Project Cards */
.project-item-card {
  background: rgba(6, 20, 52, 0.7);
  border: 1px solid rgba(80, 150, 255, 0.25);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s ease;
}

.project-item-card:hover {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 229, 255, 0.15);
}

.project-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  background: rgba(3, 10, 26, 0.6);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(80, 150, 255, 0.12);
  font-size: 12px;
}

.project-detail-block strong {
  color: #00e5ff;
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-detail-block span {
  color: #cbdcf8;
  white-space: pre-wrap;
}

/* Form section inside modal */
.memory-editor-panel {
  background: rgba(5, 15, 40, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.memory-editor-title {
  font-size: 14px;
  font-weight: 700;
  color: #00e5ff;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.memory-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media(max-width:600px) {
  .memory-editor-grid {
    grid-template-columns: 1fr
  }
}

.memory-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.memory-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: #a1b5d8;
}

.memory-input-group input,
.memory-input-group select,
.memory-input-group textarea {
  background: rgba(6, 18, 48, 0.85);
  border: 1px solid rgba(80, 150, 255, 0.25);
  color: #f0f5ff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.memory-input-group input:focus,
.memory-input-group select:focus,
.memory-input-group textarea:focus {
  border-color: #00e5ff;
}

.memory-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* Audit Logs */
.audit-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(6, 18, 46, 0.6);
  border: 1px solid rgba(80, 150, 255, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
}

.audit-action-tag {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
}

.audit-action-created {
  background: rgba(0, 229, 176, 0.15);
  color: #00e5b0;
}

.audit-action-updated {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
}

.audit-action-deleted {
  background: rgba(255, 70, 90, 0.15);
  color: #ff6b7e;
}

.audit-action-retrieved {
  background: rgba(155, 77, 255, 0.15);
  color: #c78dff;
}

.audit-action-confirmed {
  background: rgba(0, 229, 176, 0.2);
  color: #00e5b0;
}

/* -------------------------------------------------- */
/* Laptop Control & System Monitor Styles             */
/* -------------------------------------------------- */
.laptop-card-modal {
  max-width: 880px;
  width: 94vw;
  height: 86vh;
  max-height: 860px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.telemetry-card {
  background: rgba(6, 18, 46, 0.7);
  border: 1px solid rgba(0, 229, 176, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.telemetry-card:hover {
  border-color: rgba(0, 229, 176, 0.5);
  transform: translateY(-2px);
}

.telemetry-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7ea5df;
}

.telemetry-value {
  font-size: 26px;
  font-weight: 800;
  color: #00e5b0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.telemetry-sub {
  font-size: 11px;
  color: #8fa3c7;
}

.telemetry-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.telemetry-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5b0, #00e5ff);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.services-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(7, 21, 54, 0.5);
  border: 1px solid rgba(80, 150, 255, 0.2);
  border-radius: 12px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #d4e5fc;
  padding: 4px 10px;
  background: rgba(12, 32, 77, 0.6);
  border-radius: 999px;
}

.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b7e;
  box-shadow: 0 0 6px #ff6b7e;
}

.service-dot.active {
  background: #00e5b0;
  box-shadow: 0 0 6px #00e5b0;
}

.btn-refresh-telemetry {
  margin-left: auto;
  background: rgba(80, 150, 255, 0.1);
  border: 1px solid rgba(80, 150, 255, 0.3);
  color: #a5c7fd;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-refresh-telemetry:hover {
  background: rgba(80, 150, 255, 0.2);
  color: #fff;
}

/* Workflow Cards */
.workflow-item-card {
  background: rgba(6, 18, 46, 0.65);
  border: 1px solid rgba(80, 150, 255, 0.2);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}

.workflow-item-card:hover {
  border-color: rgba(0, 229, 176, 0.4);
  transform: translateY(-1px);
}

.workflow-trigger-pill {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 4px;
}

.btn-run-workflow {
  background: linear-gradient(135deg, #00e5b0, #00a880);
  border: none;
  color: #02110c;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
}

.btn-run-workflow:hover {
  box-shadow: 0 0 14px rgba(0, 229, 176, 0.5);
  transform: scale(1.02);
}

/* Floating Confirmation Banner */
.laptop-action-confirm-bar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  background: rgba(4, 14, 38, 0.92);
  border: 1px solid rgba(255, 170, 0, 0.5);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 170, 0, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 320px;
  max-width: 90vw;
  animation: confirmPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes confirmPop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.confirm-bar-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.confirm-bar-icon {
  font-size: 22px;
}

.confirm-bar-text strong {
  display: block;
  font-size: 13px;
  color: #ffbb33;
}

.confirm-bar-text p {
  margin: 0;
  font-size: 12px;
  color: #d4e5fc;
}

.confirm-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-confirm-approve {
  background: linear-gradient(135deg, #00e5b0, #00b080);
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-confirm-reject {
  background: rgba(255, 70, 90, 0.15);
  border: 1px solid rgba(255, 70, 90, 0.4);
  color: #ff6b7e;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ==========================================================================
   TOP-RIGHT JARVIS SCREEN VISION & WATCH HOLOGRAM ANIMATION HUD
   ========================================================================== */
.jarvis-vision-top-hud {
  position: absolute;
  top: 25px;
  left: 62px;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(6, 14, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.2px solid rgba(0, 229, 255, 0.45);
  border-radius: 24px;
  padding: 5px 14px 5px 8px;
  height: 48px;
  box-sizing: border-box;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 229, 255, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  cursor: pointer;
}

.jarvis-vision-top-hud:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.4);
  border-color: #00e5ff;
}

.jarvis-vision-top-hud.scanning {
  border-color: #00e5b0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 229, 176, 0.35);
}

.jarvis-hud-reactor-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: visible;
}

.jarvis-hud-video-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.jarvis-hud-ring-outer {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px dashed #00e5ff;
  animation: jarvisHudSpin 6s linear infinite;
  z-index: 1;
}

.jarvis-vision-top-hud.scanning .jarvis-hud-video-avatar {
  box-shadow: 0 0 14px rgba(0, 229, 176, 0.8);
}

.jarvis-vision-top-hud.scanning .jarvis-hud-ring-outer {
  border-color: #00e5b0;
  animation-duration: 2.5s;
}

.jarvis-hud-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jarvis-hud-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jarvis-hud-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #00e5ff;
  text-transform: uppercase;
}

.jarvis-hud-pill-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #080e1a;
  background: linear-gradient(135deg, #00e5ff, #00b0ff);
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.jarvis-hud-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jarvis-hud-status-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #00e5b0;
  transition: all 0.25s ease;
}

.jarvis-hud-status-pill.analyzing {
  color: #00e5ff;
  animation: hudPulse 1.2s infinite;
}

.jarvis-hud-status-pill.inspecting {
  color: #c084fc;
}

.jarvis-hud-status-pill.error-found {
  color: #ffaa00;
}

.jarvis-hud-status-pill.off {
  color: #64748b;
}

.jarvis-hud-sub {
  font-size: 9.5px;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

@keyframes hudPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.97); }
}

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

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

@keyframes jarvisCorePulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 6px #00e5ff); }
}

/* ====================================================
   JARVIS AI FUTURISTIC SIDE HUD WIDGETS SYSTEM
   (Active solely in the Left & Right Empty Black Margins)
   ==================================================== */

.jarvis-side-hud {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, width 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.jarvis-side-hud.active {
  opacity: 1;
  visibility: visible;
}

.jarvis-side-hud-left {
  left: 0;
  width: var(--side-hud-left-width, var(--canvas-left, 0px));
  border-right: 1px solid rgba(0, 229, 255, 0.16);
  background: linear-gradient(90deg, rgba(1, 4, 13, 0.98) 0%, rgba(3, 10, 28, 0.94) 80%, rgba(3, 10, 28, 0.65) 100%);
  box-shadow: 15px 0 45px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: row;
}

.jarvis-side-hud-right {
  right: 0;
  width: var(--side-hud-right-width, var(--canvas-left, 0px));
  border-left: 1px solid rgba(155, 77, 255, 0.16);
  background: linear-gradient(-90deg, rgba(1, 4, 13, 0.98) 0%, rgba(5, 12, 34, 0.94) 80%, rgba(5, 12, 34, 0.65) 100%);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

/* ====================================================
   LEFT NAVIGATION RAIL (Image 3)
   ==================================================== */
.hud-nav-rail {
  width: 66px;
  min-width: 66px;
  height: 100%;
  border-right: 1px solid rgba(56, 189, 248, 0.12);
  background: rgba(2, 7, 20, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 4px 12px 4px;
  box-sizing: border-box;
}

.nav-rail-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.nav-rail-items::-webkit-scrollbar {
  display: none;
}

.nav-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.nav-rail-btn span {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav-rail-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.nav-rail-btn.active {
  background: linear-gradient(135deg, rgba(0, 140, 255, 0.28), rgba(0, 229, 255, 0.2));
  border: 1px solid #00e5ff;
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.2);
}

.nav-rail-btn.pink { color: #f472b6; }
.nav-rail-btn.pink:hover { color: #fb7185; background: rgba(244, 114, 182, 0.12); border-color: rgba(244, 114, 182, 0.3); }
.nav-rail-btn.orange { color: #fb923c; }
.nav-rail-btn.orange:hover { color: #f97316; background: rgba(251, 146, 60, 0.12); border-color: rgba(251, 146, 60, 0.3); }

/* Hologram Avatar Footer */
.nav-rail-hologram-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hologram-avatar-glow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, rgba(0, 229, 255, 0.02) 70%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  animation: hudPulse 2.4s infinite ease-in-out;
  margin-bottom: 6px;
}

.ironman-svg-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 6px #00e5ff);
}

.hologram-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.hologram-meta strong {
  font-size: 8px;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.hologram-meta small {
  font-size: 7.5px;
  color: #7dd3fc;
  white-space: nowrap;
}

.powered-badge {
  font-size: 6.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ====================================================
   HUD SCROLL CONTAINER & 3D CARDS
   ==================================================== */
.hud-scroll-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.25) transparent;
}

.hud-scroll-container::-webkit-scrollbar {
  width: 4px;
}
.hud-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}
.hud-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.25);
  border-radius: 4px;
}

/* 3D Interactive Card Base with Continuous Cybernetic Lighting Aura */
@keyframes hudBorderGlowAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes albumPulseRing {
  0% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
  50% { transform: scale(1.06); opacity: 1; box-shadow: 0 0 22px rgba(56, 189, 248, 0.8), 0 0 35px rgba(192, 132, 252, 0.5); }
  100% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
}

.hud-3d-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  background: linear-gradient(145deg, rgba(6, 18, 44, 0.88) 0%, rgba(3, 10, 28, 0.95) 100%);
  border: 1px solid rgba(70, 140, 255, 0.26);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Ambient Cybernetic Border Aura */
.hud-3d-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(115deg, rgba(0, 229, 255, 0.45), rgba(168, 85, 247, 0.35), rgba(0, 229, 176, 0.35), rgba(0, 229, 255, 0.45));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: hudBorderGlowAnim 8s ease infinite;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.hud-3d-card:hover {
  transform: translateY(-3px) rotateX(1deg) rotateY(-1deg);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 229, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hud-3d-card:hover::before {
  opacity: 1;
}

.hud-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hud-header-left {
  display: flex;
  flex-direction: column;
}

.hud-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.2px;
}

.hud-card-title.gradient-txt {
  background: linear-gradient(110deg, #38bdf8 0%, #c084fc 50%, #00e5ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hudBorderGlowAnim 6s linear infinite;
}

.hud-card-sub {
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 1px;
  display: block;
}

/* ====================================================
   LEFT SIDE HUD CARDS WITH LIVE VIDEO BACKGROUND
   ==================================================== */
.hud-has-video-bg {
  position: relative !important;
  overflow: hidden !important;
}

.hud-has-video-bg .hud-card-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
  filter: brightness(1.2) contrast(1.1) saturate(1.25);
  pointer-events: none;
}

.hud-has-video-bg .hud-card-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6, 16, 44, 0.88) 0%, rgba(3, 9, 26, 0.95) 100%);
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.hud-has-video-bg .hud-card-inner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.hud-tech-micro-label {
  font-size: 7.5px;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
  display: block;
  font-family: monospace;
}

.hud-telemetry-pill-tag {
  font-size: 8px;
  font-weight: 700;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

/* ====================================================
   1. WEATHER CARD (Redesigned)
   ==================================================== */
.hud-weather-card-v2 {
  border: 1.2px solid rgba(0, 140, 255, 0.35);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 18px rgba(0, 140, 255, 0.12);
}

.hud-weather-loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 2px;
}

.radar-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  animation: hudPulse 2s infinite ease-in-out;
}

.hud-sun-cloud-art {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
  flex-shrink: 0;
}

.hud-weather-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hud-sun-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 12px rgba(251, 191, 36, 0.6);
  pointer-events: none;
  animation: hudPulse 3s infinite;
}

.hud-weather-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 10px 0;
  padding: 8px 12px;
  background: rgba(2, 8, 24, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
}

.hud-temp-big {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
}

.hud-weather-cond-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.hud-condition-txt {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.hud-temp-range {
  font-size: 8.5px;
  font-weight: 600;
  color: #7dd3fc;
}

.hud-weather-telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-tele-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(10, 24, 52, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 8px;
  padding: 5px 6px;
}

.hud-tele-icon {
  font-size: 11px;
  flex-shrink: 0;
}

.hud-tele-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hud-tele-label {
  font-size: 7px;
  color: #7b94b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.hud-tele-val {
  font-size: 9.5px;
  color: #f1f5f9;
  font-weight: 700;
  white-space: nowrap;
}

.hud-aqi-pill {
  font-size: 8px;
  font-weight: 800;
  color: #00e5b0;
}

/* ====================================================
   2. SYSTEM MONITOR CARD (Redesigned)
   ==================================================== */
.hud-system-monitor-v2 {
  border: 1.2px solid rgba(0, 140, 255, 0.35);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 18px rgba(0, 140, 255, 0.12);
}

.hud-live-tag {
  font-size: 8px;
  font-weight: 800;
  color: #00e5b0;
  background: rgba(0, 229, 176, 0.15);
  border: 1px solid rgba(0, 229, 176, 0.4);
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 229, 176, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hud-gauges-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  margin: 6px 0 10px 0;
  padding: 8px 6px;
  background: rgba(2, 8, 24, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
}

.hud-gauge-circle-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  margin: 0 auto;
}

.hud-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hud-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.hud-gauge-arc {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-gauge-arc.cyan {
  stroke: #00e5ff;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.9));
}

.hud-gauge-arc.purple {
  stroke: #c084fc;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.9));
}

.hud-gauge-arc.green {
  stroke: #00e5b0;
  filter: drop-shadow(0 0 8px rgba(0, 229, 176, 0.9));
}

.hud-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hud-gauge-name {
  font-size: 7.5px;
  font-weight: 700;
  color: #7b94b8;
  letter-spacing: 0.3px;
}

.hud-gauge-val {
  font-size: 11px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
}

.hud-gauge-sub {
  font-size: 6.5px;
  font-weight: 600;
  color: #7dd3fc;
  margin-top: 1px;
}

.hud-storage-gpu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-gauge-mini-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.hud-gauge-mini-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hud-gauge-mini-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hud-mini-name {
  font-size: 6.5px;
  font-weight: 700;
  color: #7b94b8;
}

.hud-mini-val {
  font-size: 9px;
  font-weight: 800;
  color: #f8fafc;
}

.hud-storage-led-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-storage-led-wrap.battery .hud-storage-val.green {
  color: #00e5b0;
}

.hud-segmented-led-bar.green .led-seg.active.green {
  background: #00e5b0;
  box-shadow: 0 0 6px #00e5b0;
}

.hud-storage-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-storage-label {
  font-size: 8px;
  font-weight: 600;
  color: #7b94b8;
}

.hud-storage-val {
  font-size: 9px;
  font-weight: 700;
  color: #00e5b0;
}

.hud-segmented-led-bar {
  display: flex;
  gap: 2px;
  height: 5px;
}

.led-seg {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.led-seg.active {
  background: #00e5b0;
  box-shadow: 0 0 6px rgba(0, 229, 176, 0.8);
}

/* ====================================================
   3. AI MEMORY CARD (Redesigned)
   ==================================================== */
.hud-ai-memory-card {
  border: 1.2px solid rgba(0, 140, 255, 0.35);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 18px rgba(0, 140, 255, 0.12);
}

.badge-active-green {
  background: rgba(0, 229, 176, 0.16);
  color: #00e5b0;
  border: 1px solid rgba(0, 229, 176, 0.4);
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 229, 176, 0.35);
}

.star-icon {
  color: #00e5b0;
  margin-right: 2px;
}

.hud-memory-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 8px 0;
}

.hud-memory-sub {
  margin: 0;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
}

.hud-memory-index-badge {
  font-size: 8px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 1.5px 6px;
  border-radius: 999px;
}

.hud-memory-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.hud-mem-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 34, 72, 0.65);
  border: 1px solid rgba(80, 150, 255, 0.25);
  border-radius: 9px;
  padding: 6px 8px;
  color: #cbd5e1;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.hud-mem-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-mem-pill:hover {
  background: rgba(0, 229, 255, 0.22);
  border-color: rgba(0, 229, 255, 0.55);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

.mem-icon.cyan { color: #00e5ff; }
.mem-icon.blue { color: #38bdf8; }
.mem-icon.purple { color: #c084fc; }
.mem-icon.amber { color: #fbbf24; }
.mem-icon.green { color: #00e5b0; }

.hud-memory-quote {
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 8.5px;
  color: #7b94b8;
  font-style: italic;
  text-align: center;
}

.hud-memory-quote cite {
  color: #38bdf8;
  font-style: normal;
  font-weight: 700;
}

/* ====================================================
   4. QUICK STATS DOCK (Redesigned)
   ==================================================== */
.hud-quick-stats-card {
  border: 1.2px solid rgba(0, 140, 255, 0.35);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 18px rgba(0, 140, 255, 0.12);
}

.hud-quick-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.hud-qstat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-qstat-tile:hover {
  transform: translateY(-3px) scale(1.03);
}

.hud-qstat-tile.purple {
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.55), rgba(59, 7, 100, 0.8));
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.2);
}

.hud-qstat-tile.blue {
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.55), rgba(8, 47, 73, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.hud-qstat-tile.amber {
  background: linear-gradient(145deg, rgba(180, 83, 9, 0.55), rgba(69, 26, 3, 0.8));
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.hud-qstat-tile.green {
  background: linear-gradient(145deg, rgba(4, 120, 87, 0.55), rgba(2, 44, 34, 0.8));
  border: 1px solid rgba(0, 229, 176, 0.45);
  box-shadow: 0 0 14px rgba(0, 229, 176, 0.2);
}

.hud-qstat-icon-wrap {
  margin-bottom: 4px;
}

.hud-qstat-number {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-bottom: 2px;
}

.hud-qstat-label {
  font-size: 8px;
  font-weight: 600;
  color: #cbd5e1;
}

/* ====================================================
   RIGHT SIDE HUD: NEXT-GEN AI COMMAND CENTER
   (Now Playing + Automation Hub + Chat with JARVIS)
   ==================================================== */

/* Technical Heading Labels */
.hud-widget-heading-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hud-tech-label {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #38bdf8;
  text-transform: uppercase;
  font-family: monospace;
}

.live-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  display: inline-block;
  animation: hudPulse 2s infinite ease-in-out;
}

.live-pulse-dot.cyan {
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

/* 1. NOW PLAYING MODULE - Expanded Ultra-Premium 3D Futuristic Design */
.hud-now-playing-card {
  background: linear-gradient(160deg, rgba(8, 20, 52, 0.94) 0%, rgba(4, 12, 34, 0.98) 100%);
  border: 1.5px solid rgba(0, 140, 255, 0.3);
  border-radius: 20px;
  padding: 14px 14px 16px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 20px rgba(0, 140, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hud-now-playing-card:hover {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 28px rgba(0, 229, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.hud-now-playing-card .hud-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hud-now-playing-card .hud-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.hud-badge-video {
  font-size: 10px;
  font-weight: 600;
  color: #00e5ff;
  background: rgba(0, 140, 255, 0.18);
  border: 1.2px solid rgba(0, 229, 255, 0.5);
  padding: 3.5px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25), inset 0 0 8px rgba(0, 229, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hud-badge-video:hover {
  background: rgba(0, 229, 255, 0.25);
  border-color: #00e5ff;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
  transform: scale(1.04);
}

/* Media Hero Banner (Panoramic Cinematic Stage with Video Background) */
.hud-media-hero-banner.expanded {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #020614;
  border: 1.2px solid rgba(0, 140, 255, 0.45);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(0, 0, 0, 0.6);
}

.hud-banner-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1 !important;
  pointer-events: none;
  filter: brightness(1.1) contrast(1.1) saturate(1.15);
}

.hud-banner-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 20, 0.4) 0%, rgba(2, 6, 20, 0.1) 45%, rgba(2, 6, 20, 0.2) 100%);
  z-index: 2;
  pointer-events: none;
}

.hud-media-hero-banner.expanded .hud-album-art-wrap {
  position: relative;
  z-index: 3;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35), 0 4px 14px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(14, 30, 68, 0.95) 0%, rgba(2, 6, 20, 0.98) 100%);
  transition: transform 0.25s ease;
}

.hud-media-hero-banner.expanded .hud-album-art-wrap:hover {
  transform: scale(1.06);
  border-color: #00e5ff;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.65);
}

.hud-album-art-img.spinning-disc {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  animation: jarvisVinylSpin 6s linear infinite;
  transform-origin: center center;
}

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

.vinyl-center-hole {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #020817;
  border: 1.8px solid #00e5ff;
  box-shadow: 0 0 8px #00e5ff, inset 0 0 4px #000;
  z-index: 3;
  pointer-events: none;
}

.hud-album-close-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  line-height: 1;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 4;
}

.hud-album-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
}

.hud-4k-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.9);
  border: 1.2px solid #ffd700;
  color: #ffd700;
  font-size: 7.5px;
  font-weight: 900;
  padding: 1px 3.5px;
  border-radius: 3.5px;
  z-index: 4;
  line-height: 1.1;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.hud-media-hero-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
  z-index: 3;
}

.hud-track-meta {
  margin-bottom: 2px;
}

.hud-song-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 229, 255, 0.3);
}

.hud-artist-name {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 2px;
  display: block;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Dynamic Holographic Cyan Waveform (24 Peaked Bars) */
.hud-sound-waveform-anim.expanded {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
  margin-top: 5px;
}

.wave-bar {
  width: 2px;
  height: 3px;
  background: linear-gradient(180deg, #00e5ff 0%, #38bdf8 45%, #a855f7 100%);
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0, 229, 255, 0.75);
  animation: waveBarAnim 0.85s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { height: 3px; animation-delay: 0.05s; }
.wave-bar:nth-child(2) { height: 5px; animation-delay: 0.12s; }
.wave-bar:nth-child(3) { height: 7px; animation-delay: 0.18s; }
.wave-bar:nth-child(4) { height: 10px; animation-delay: 0.25s; }
.wave-bar:nth-child(5) { height: 13px; animation-delay: 0.32s; }
.wave-bar:nth-child(6) { height: 15px; animation-delay: 0.4s; }
.wave-bar:nth-child(7) { height: 16px; animation-delay: 0.48s; }
.wave-bar:nth-child(8) { height: 14px; animation-delay: 0.42s; }
.wave-bar:nth-child(9) { height: 12px; animation-delay: 0.35s; }
.wave-bar:nth-child(10) { height: 10px; animation-delay: 0.28s; }
.wave-bar:nth-child(11) { height: 7px; animation-delay: 0.2s; }
.wave-bar:nth-child(12) { height: 5px; animation-delay: 0.15s; }
.wave-bar:nth-child(13) { height: 4px; animation-delay: 0.1s; }
.wave-bar:nth-child(14) { height: 3px; animation-delay: 0.05s; }
.wave-bar:nth-child(15) { height: 6px; animation-delay: 0.12s; }
.wave-bar:nth-child(16) { height: 9px; animation-delay: 0.22s; }
.wave-bar:nth-child(17) { height: 13px; animation-delay: 0.33s; }
.wave-bar:nth-child(18) { height: 16px; animation-delay: 0.44s; }
.wave-bar:nth-child(19) { height: 11px; animation-delay: 0.31s; }
.wave-bar:nth-child(20) { height: 7px; animation-delay: 0.19s; }
.wave-bar:nth-child(21) { height: 4px; animation-delay: 0.08s; }
.wave-bar:nth-child(22) { height: 6px; animation-delay: 0.16s; }
.wave-bar:nth-child(23) { height: 9px; animation-delay: 0.26s; }
.wave-bar:nth-child(24) { height: 5px; animation-delay: 0.14s; }

@keyframes waveBarAnim {
  0% { height: 3px; }
  100% { height: 16px; }
}

/* Audio Enhancers Row (2 Balanced Columns) */
.hud-audio-enhancers-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hud-enhancer-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(10, 22, 50, 0.7);
  border: 1px solid rgba(0, 140, 255, 0.22);
  border-radius: 10px;
  padding: 6px 8px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-enhancer-pill span {
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hud-enhancer-pill:hover {
  background: rgba(0, 140, 255, 0.22);
  border-color: #00e5ff;
  color: #ffffff;
  transform: translateY(-1px);
}

.hud-enhancer-pill.active {
  background: linear-gradient(135deg, rgba(0, 140, 255, 0.28), rgba(0, 229, 255, 0.2));
  border-color: #00e5ff;
  color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3), inset 0 0 6px rgba(0, 229, 255, 0.15);
}

/* Scrub Track & Live Timers */
.hud-player-progress-row {
  margin-bottom: 8px;
}

.hud-scrub-track {
  width: 100%;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: height 0.2s ease;
}

.hud-scrub-track:hover {
  height: 5px;
}

.hud-scrub-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #00e5ff);
  border-radius: 999px;
  position: relative;
  box-shadow: 0 0 10px #00e5ff;
}

.hud-scrub-thumb {
  position: absolute;
  right: -5px;
  top: -3.5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #00e5ff;
  box-shadow: 0 0 10px #00e5ff, 0 0 4px #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hud-scrub-track:hover .hud-scrub-thumb {
  transform: scale(1.2);
}

.hud-scrub-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  color: #7b94b8;
  font-weight: 600;
  margin-top: 5px;
  font-family: monospace;
}

/* Playback Controls Row */
.hud-player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-top: 8px;
}

.hud-ctrl-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: grid;
  place-items: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

.hud-ctrl-btn:hover {
  color: #00e5ff;
  transform: scale(1.18);
}

.hud-ctrl-btn.play-pause-main {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.28) 0%, rgba(30, 64, 175, 0.4) 100%);
  border: 1.5px solid #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.55), inset 0 0 10px rgba(0, 229, 255, 0.22);
  display: grid;
  place-items: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ctrl-play-inner-glow {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.hud-ctrl-btn.play-pause-main:hover {
  border-color: #ffffff;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.5) 0%, rgba(30, 64, 175, 0.6) 100%);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.85), inset 0 0 14px rgba(0, 229, 255, 0.35);
  transform: scale(1.1);
}

/* Volume Level Slider */
.hud-player-volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  margin-top: 10px;
}

.hud-vol-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}

.hud-vol-fill {
  height: 100%;
  background: #0084ff;
  border-radius: 999px;
  position: relative;
  box-shadow: 0 0 6px #0084ff;
}

.hud-vol-thumb {
  position: absolute;
  right: -4px;
  top: -3.5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #00e5ff;
}

.hud-vol-percent-txt {
  font-size: 9.5px;
  font-weight: 700;
  color: #7b94b8;
  font-family: monospace;
}

/* ====================================================
   3. RECENT SEARCH & CONVERSATION HISTORY MODULE
   ==================================================== */
.hud-history-card {
  background: linear-gradient(160deg, rgba(8, 20, 52, 0.94) 0%, rgba(4, 12, 34, 0.98) 100%);
  border: 1.5px solid rgba(0, 140, 255, 0.3);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 20px rgba(0, 140, 255, 0.15);
  display: flex;
  flex-direction: column;
}

.hud-history-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 600;
  color: #00e5ff;
}

.hud-history-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 10px 0;
}

.hud-history-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 14, 34, 0.94);
  border: 1.2px solid rgba(0, 140, 255, 0.25);
  border-radius: 10px;
  height: 32px;
  padding: 0 10px;
  transition: all 0.2s ease;
}

.hud-history-search-box:focus-within {
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.hud-history-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 10.5px;
  outline: none;
}

.hud-history-search-input::placeholder {
  color: #64748b;
}

.hud-history-clear-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-history-clear-btn:hover {
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.1);
}

.hud-history-stream {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 8px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.3) transparent;
}

.hud-history-stream::-webkit-scrollbar {
  width: 3px;
}

.hud-history-stream::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 3px;
}

.hud-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 22, 50, 0.7);
  border: 1px solid rgba(0, 140, 255, 0.18);
  border-radius: 11px;
  padding: 8px 10px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hud-history-item:hover {
  background: rgba(14, 30, 68, 0.95);
  border-color: rgba(0, 229, 255, 0.45);
  transform: translateX(2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 229, 255, 0.2);
}

.hud-history-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hud-history-icon-badge.music {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
}

.hud-history-icon-badge.system {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.hud-history-icon-badge.code {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.hud-history-icon-badge.search {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.hud-history-icon-badge.diag {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.hud-history-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-history-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hud-history-query {
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-history-time {
  font-size: 8.5px;
  color: #64748b;
  font-family: monospace;
  flex-shrink: 0;
}

.hud-history-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-history-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hud-history-tag.music {
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
}

.hud-history-tag.system {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.hud-history-tag.code {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.hud-history-tag.search {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.hud-history-tag.diag {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.hud-history-resp {
  font-size: 9px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-history-run-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hud-history-item:hover .hud-history-run-btn {
  opacity: 1;
  transform: scale(1);
}

.hud-history-run-btn:hover {
  background: #00e5ff;
  color: #020817;
  box-shadow: 0 0 10px #00e5ff;
}

.hud-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-history-count-txt {
  font-size: 9px;
  color: #64748b;
  font-family: monospace;
}

.hud-history-action-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-history-action-pill:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}

/* Ensure redundant floating popup player and search dialogs never appear on screen */
#jarvisMediaPlayer,
.jarvis-media-player,
#jarvisSearchResultsPanel {
  display: none !important;
  position: fixed !important;
  left: -9999px !important;
  bottom: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -999 !important;
}

@media (max-width: 1024px) {
  .jarvis-side-hud {
    display: none !important;
  }
}