/* ==========================================================================
   TLZ.WORLD // SCI-FI NEO-BRUTALIST DESIGN SYSTEM & ANIMATIONS
   ========================================================================== */

/* --- 01. CSS Custom Properties & Design Tokens --- */
:root {
  /* Color Palette - Cyber / Abyss / Neon */
  --bg-base: #08090d;
  --bg-abyss: #040507;
  --bg-surface: rgba(13, 17, 26, 0.82);
  --bg-surface-elevated: rgba(18, 24, 38, 0.92);
  --bg-glass: rgba(12, 16, 26, 0.65);
  --bg-glass-heavy: rgba(8, 10, 16, 0.88);

  /* Accents */
  --accent-cyan: #00f0ff;
  --accent-cyan-dim: rgba(0, 240, 255, 0.15);
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Text & Hierarchies */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #08090d;

  /* Borders & Grids */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-cyan: rgba(0, 240, 255, 0.3);
  --border-cyan-bright: rgba(0, 240, 255, 0.7);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

  /* Radii & Metrics */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-cyan-glow: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 240, 255, 0.12);

  /* Animation Timings */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 02. Global Reset & Body Foundation --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  user-select: none;
}

body.cyber-theme {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #0d111a 0%, var(--bg-base) 100%);
}

button {
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 03. 3D WebGL Canvas Layer --- */
#worldCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  display: block;
}

/* --- 04. HUD Grid & Vignette Atmospheric Overlays --- */
.hud-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  opacity: 0.7;
}

.hud-vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(4, 5, 7, 0.75) 100%);
}

/* --- 05. Access Curtain / Gateway Modal --- */
.access-curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.access-curtain.hidden,
.access-curtain[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curtain-card {
  position: relative;
  width: 90%;
  max-width: 460px;
  padding: 32px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal), 0 0 30px rgba(0, 240, 255, 0.15);
  text-align: center;
  overflow: hidden;
}

.curtain-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: scanBar 3s ease-in-out infinite alternate;
}

@keyframes scanBar {
  0% { top: 0%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0.3; }
}

.curtain-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.badge-tag {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-emerald);
}

.ping-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.curtain-icon {
  font-size: 36px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  text-shadow: 0 0 20px var(--accent-cyan);
}

.curtain-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: #fff;
}

.curtain-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.curtain-desc kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

.btn-linear,
.btn-cyber-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(99, 102, 241, 0.22));
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.btn-linear:hover,
.btn-cyber-primary:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(99, 102, 241, 0.4));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}

.btn-linear:active,
.btn-cyber-primary:active {
  transform: translateY(0);
}

/* --- 06. Fixed Top Telemetry Header --- */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(8, 9, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.brand-monogram {
  color: #fff;
  letter-spacing: 0.08em;
}

.brand-divider {
  color: var(--accent-cyan);
  opacity: 0.6;
}

.brand-sub {
  color: var(--text-muted);
  font-weight: 400;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-emerald);
  letter-spacing: 0.04em;
}

.header-telemetry {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.telemetry-item i {
  color: var(--accent-cyan);
  font-size: 11px;
}

.btn-hud-toggle {
  cursor: pointer;
}

.btn-hud-toggle:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--border-cyan);
  color: var(--text-primary);
}

/* --- 07. Modal Backdrop & Holographic Windows Container --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(4, 5, 8, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modals-container {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.holographic-modal {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  pointer-events: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border-cyan) transparent;
}

.holographic-modal::-webkit-scrollbar {
  width: 5px;
}
.holographic-modal::-webkit-scrollbar-thumb {
  background: var(--border-cyan);
  border-radius: 4px;
}

.holographic-modal.active,
.holographic-modal:not([hidden]) {
  display: block;
  animation: modalGlitchIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalGlitchIn {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
    filter: brightness(1.4);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1);
  }
}

/* Sci-Fi Corner Crosshairs */
.corner-cross {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
}
.corner-cross::before,
.corner-cross::after {
  content: '';
  position: absolute;
  background: var(--accent-cyan);
}
.cross-tl { top: -1px; left: -1px; }
.cross-tl::before { top: 0; left: 0; width: 8px; height: 2px; }
.cross-tl::after { top: 0; left: 0; width: 2px; height: 8px; }

.cross-tr { top: -1px; right: -1px; }
.cross-tr::before { top: 0; right: 0; width: 8px; height: 2px; }
.cross-tr::after { top: 0; right: 0; width: 2px; height: 8px; }

.cross-bl { bottom: -1px; left: -1px; }
.cross-bl::before { bottom: 0; left: 0; width: 8px; height: 2px; }
.cross-bl::after { bottom: 0; left: 0; width: 2px; height: 8px; }

.cross-br { bottom: -1px; right: -1px; }
.cross-br::before { bottom: 0; right: 0; width: 8px; height: 2px; }
.cross-br::after { bottom: 0; right: 0; width: 2px; height: 8px; }

.scanline-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0.4;
  border-radius: var(--radius-md);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-node-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.modal-node-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass);
}

/* --- 08. Modal 01 // Identity Content --- */
.identity-layout {
  display: flex;
  gap: 24px;
  align-items: center;
}

.avatar-column {
  flex-shrink: 0;
}

.avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border: 1px dashed var(--accent-cyan);
  border-radius: 50%;
  animation: rotateRing 20s linear infinite;
  opacity: 0.6;
}

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

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.avatar-badge-decor {
  position: absolute;
  top: -11px;
  left: -11px;
  width: 132px;
  height: 132px;
  pointer-events: none;
}

.online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-surface-elevated);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.identity-details {
  flex: 1;
  min-width: 0;
}

.identity-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.hero-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
}

.typing-role-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.prompt-sign {
  color: var(--accent-cyan);
  font-weight: 700;
}

.typing-cursor {
  color: var(--accent-cyan);
  font-weight: 700;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-bio {
  font-size: 13px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 16px;
  border-left: 2px solid var(--accent-cyan);
  padding-left: 10px;
}

.hero-bio cite {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 4px;
}

.identity-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.pill-btn:hover {
  color: #fff;
  border-color: var(--border-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.pill-btn .copy-icon,
.pill-btn .meta-ext {
  font-size: 11px;
  opacity: 0.6;
}

/* --- 09. Modal 02 // Arsenal Content --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tech-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.tech-chip:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: var(--border-cyan);
  transform: translateY(-2px);
}

.tech-chip i {
  font-size: 20px;
  flex-shrink: 0;
}

.chip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chip-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.chip-cat {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- 10. Modal 03 // Projects Content --- */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.project-card:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: var(--border-cyan);
  transform: translateX(4px);
}

.project-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-cyan);
  opacity: 0;
  transition: var(--transition-fast);
}

.project-card:hover .project-indicator {
  opacity: 1;
}

.proj-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-music {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.icon-exam {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-quests {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.proj-body {
  flex: 1;
  min-width: 0;
}

.proj-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.proj-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.proj-status {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.proj-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.proj-link-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

.proj-link-text i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.project-card:hover .proj-link-text i {
  transform: translateX(3px);
}

/* --- 11. Modal 04 // Uplink Content --- */
.uplink-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.uplink-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-align: left;
  width: 100%;
}

.uplink-card:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: var(--border-cyan);
}

.uplink-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.discord-icon { color: #5865f2; }
.github-icon { color: #f1f5f9; }
.telegram-icon { color: #229ed9; }
.facebook-icon { color: #1877f2; }

.uplink-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.uplink-platform {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.uplink-handle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uplink-card .copy-icon,
.uplink-card .ext-icon {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.uplink-card:hover .copy-icon,
.uplink-card:hover .ext-icon {
  color: var(--accent-cyan);
}

/* --- 12. Fixed Bottom Quick Navigation Dock --- */
.nav-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(10, 13, 20, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
}

.dock-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.dock-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dock-item.active {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.dock-num {
  font-size: 10px;
  opacity: 0.5;
}

/* --- 13. Floating Cyber Audio Player Deck --- */
.floating-player-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 26;
}

/* Mini Trigger Pill */
.floating-player-btn {
  display: flex;
  align-items: center;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.floating-player-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
}

.floating-pill-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-cover-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  flex-shrink: 0;
}

.pill-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-player-wrapper.playing .pill-cover-img {
  animation: spinCover 12s linear infinite;
}

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

.pill-playing-wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}

.floating-player-wrapper.playing .pill-playing-wave {
  opacity: 1;
}

.pill-playing-wave span {
  width: 2px;
  height: 14px;
  background: var(--accent-cyan);
  border-radius: 1px;
  transform-origin: bottom;
  animation: eqBar 0.8s ease-in-out infinite alternate;
}

.pill-playing-wave span:nth-child(2) {
  animation-delay: 0.2s;
}
.pill-playing-wave span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes eqBar {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

.pill-track-info {
  display: flex;
  flex-direction: column;
  max-width: 130px;
  overflow: hidden;
}

.pill-track-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-track-artist {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: var(--transition-fast);
}

.pill-play-btn:hover {
  background: var(--accent-cyan);
  color: #08090d;
}

/* Expanded Player Modal */
.floating-player-modal {
  position: absolute;
  bottom: 58px;
  right: 0;
  width: 440px;
  max-width: 90vw;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal), 0 0 30px rgba(0, 240, 255, 0.15);
  padding: 16px;
  display: none;
}

.floating-player-modal:not([hidden]) {
  display: block;
  animation: slideDeckUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDeckUp {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.deck-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.modal-deck-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.freq-hz-counter {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.btn-modal-close {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}

.btn-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.canvas-visualizer-box {
  margin: 12px 0;
  height: 64px;
  background: rgba(4, 5, 8, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.audio-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.floating-content-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cover-wrapper {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-glass);
}

.cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cover-wrapper:hover .cover-play-overlay {
  opacity: 1;
}

.floating-track-main {
  flex: 1;
  min-width: 0;
}

.track-details {
  margin-bottom: 8px;
}

.track-status-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-bottom: 4px;
}

.track-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 12px;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-icon.active {
  color: var(--accent-cyan);
}

.btn-play-linear {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  transition: var(--transition-fast);
}

.btn-play-linear:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
}

.player-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.time-stamp {
  width: 28px;
  text-align: center;
}

.timeline-bar {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
}

.timeline-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  width: 0%;
}

.timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 2px;
  width: 0%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.timeline-scrubber {
  position: absolute;
  top: -4px;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.15s;
}

.timeline-bar:hover .timeline-scrubber {
  opacity: 1;
}

.deck-extra-tools {
  margin-left: 6px;
}

.volume-module {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-mute {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.linear-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.linear-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.linear-range-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  border: none;
}

/* --- 14. Keyboard Hints & Toast Notifications --- */
.kbd-hints-bar {
  position: fixed;
  bottom: 8px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 10;
}

.kbd-hints-bar kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 1px 4px;
  color: var(--text-secondary);
}

.linear-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(14, 18, 28, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.linear-toast i {
  color: var(--accent-emerald);
}

.linear-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* --- 15. Responsive Adaptations --- */
@media (max-width: 768px) {
  .top-header {
    padding: 0 14px;
  }

  .brand-sub,
  .status-text {
    display: none;
  }

  .header-telemetry .time-widget {
    display: none;
  }

  .nav-dock {
    bottom: 14px;
    padding: 4px 6px;
    gap: 4px;
  }

  .dock-item {
    padding: 6px 10px;
    font-size: 11px;
  }

  .dock-item .dock-label {
    font-size: 10px;
  }

  .floating-player-wrapper {
    bottom: 64px;
    right: 14px;
  }

  .floating-player-modal {
    width: calc(100vw - 28px);
    right: -10px;
    bottom: 50px;
  }

  .identity-layout {
    flex-direction: column;
    text-align: center;
  }

  .identity-title-row {
    justify-content: center;
  }

  .typing-role-box {
    justify-content: center;
  }

  .hero-bio {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding: 8px 0 0;
  }

  .identity-actions {
    justify-content: center;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .uplink-grid {
    grid-template-columns: 1fr;
  }

  .holographic-modal {
    padding: 16px;
  }
}
