:root {
  --primary-color: #26a69a;
  --accent-color: #ff9800;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-code: #0d1117;
  --text-light: #f0f6fc;
  --text-muted: #8b949e;
  --border-color: #30363d;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(38, 166, 154, 0.2);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 8px;
  --header-height: 64px;
  --z-modal: 10000;
  --z-toast: 10001;
  --z-progress: 1000;
  --z-fixed: 9998;
}

.high-contrast {
  --primary-color: #ffffff;
  --accent-color: #ffff00;
  --bg-dark: #000000;
  --bg-card: #000000;
  --bg-code: #000000;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --border-color: #ffffff;
  --shadow-light: 0 4px 20px rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.3);
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--bg-dark);
  --md-code-bg-color: var(--bg-code);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
  border: 3px solid var(--bg-dark);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-dark);
}

body {
  background: radial-gradient(1100px 600px at 12% -10%, rgba(38, 166, 154, 0.18), transparent 60%),
    radial-gradient(900px 500px at 88% -20%, rgba(255, 152, 0, 0.12), transparent 55%),
    linear-gradient(140deg, #0b0f14 0%, #0d1117 45%, #0a0d12 100%);
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 166, 154, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 166, 154, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(38,166,154,0.08), transparent 35%),
    radial-gradient(circle at 80% 15%, rgba(255,152,0,0.06), transparent 35%);
  background-size: 28px 28px, 28px 28px, auto, auto;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.md-main__inner {
  position: relative;
  z-index: 1;
}

.md-header {
  box-shadow: 0 0 25px rgba(38, 166, 154, 0.3);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.md-header--shadow {
  box-shadow: 0 0 30px rgba(38, 166, 154, 0.4);
}

.md-typeset {
  font-family: 'Roboto Mono', monospace;
  line-height: 1.6;
  font-size: 1.15em;
  font-weight: 400;
  color: var(--text-light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1em;
  line-height: 1.3;
  color: var(--primary-color);
  position: relative;
  transition: var(--transition);
  text-shadow: var(--shadow-glow);
  letter-spacing: -0.02em;
}

.md-typeset h1::before,
.md-typeset h2::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.md-typeset h1:hover::before,
.md-typeset h2:hover::before {
  width: 70px;
}

.md-typeset h1 {
  font-size: 2.5em;
  margin-bottom: 2rem;
  font-weight: 700;
}

.md-typeset h2 {
  font-size: 1.8em;
}

.md-typeset h3 {
  font-size: 1.5em;
}

.md-typeset h4 {
  font-size: 1.3em;
}

.md-typeset h5 {
  font-size: 1.1em;
}

.md-typeset h6 {
  font-size: 1em;
}

.md-typeset p {
  margin-bottom: 1.2em;
  text-align: left;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
  text-rendering: optimizeLegibility;
}

.md-typeset ul,
.md-typeset ol {
  text-align: left;
  padding-left: 2em;
  margin-bottom: 1.2em;
}

.md-typeset li {
  margin-bottom: 0.4em;
  line-height: 1.6;
  font-weight: 400;
}

.md-nav__link {
  transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin: 0.2rem 0;
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.md-nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.1;
  transition: left 0.4s ease;
  z-index: -1;
}

.md-nav__link:hover::before {
  left: 0;
}

.md-nav__link:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.md-nav__link--active {
  color: var(--accent-color);
  font-weight: 600;
}

.md-nav__item--active>.md-nav__link {
  color: var(--accent-color);
  font-weight: 600;
  background: rgba(38, 166, 154, 0.1);
  padding-left: calc(1rem - 4px);
}

.md-nav--secondary .md-nav__title {
  top: 0;
  z-index: 1;
}
.md-nav--secondary .md-nav__title {
        background: var(--md-default-bg-color);
        box-shadow: 0 0 .4rem .4rem var(--md-default-bg-color);
        position: sticky;
        top: 0;
        z-index: 1
}
.md-sidebar__scrollwrap {
  padding: 0 0.25rem;
}

.md-sidebar__scrollwrap {
    backface-visibility: hidden;
    margin: 0;
    overflow-y: auto;
    scrollbar-color: hsl(225deg 15% 90% / 0%) #0000;
  }

.md-nav__item--active > .md-nav__link {
  color: var(--accent-color);
  font-weight: 600;
  background: rgba(38, 166, 154, 0.1);
  padding-left: calc(1rem - 4px);
}

.md-sidebar__scrollwrap {
    backface-visibility: hidden;
    margin: 0;
    overflow-y: auto;
    scrollbar-color: hsl(225deg 15% 90% / 0%) #0000;
}

.md-nav__item--active > .md-nav__link {
  color: var(--accent-color);
  font-weight: 600;
  background: rgba(38, 166, 154, 0.1);
  padding-left: calc(1rem - 4px);
}

.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link {
        background: var(--md-default-bg-color);
        margin-top: 0;
        position: sticky;
        top: 0;
        z-index: 1
}

.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link {
  box-shadow: 0 0 0.4rem var(--md-default-bg-color);
  margin-top: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}
    
.md-typeset code {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95em;
  font-weight: 500;
  background-color: rgba(38, 166, 154, 0.1);
  border-radius: 4px;
  padding: 0.2em 0.4em;
  transition: var(--transition);
}

.md-typeset code:hover {
  background-color: rgba(38, 166, 154, 0.15);
}

.md-typeset img,
.md-typeset video,
.md-typeset iframe,
.md-typeset pre,
.md-typeset .highlight,
.md-typeset .admonition,
.md-typeset details,
.md-typeset table:not([class]) {
  border-radius: 12px;
}

.md-typeset img {
  border: 1px solid rgba(48, 54, 61, 0.7);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.md-typeset table:not([class]) {
  overflow: hidden;
}

/* Footer - blend with main background */
.md-footer,
.md-footer-meta {
  background: transparent !important;
  border-top: 1px solid rgba(74, 214, 200, 0.12) !important;
  position: relative !important;
  z-index: 1 !important;
}

.md-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 15, 20, 0.7) 40%, rgba(11, 15, 20, 1) 100%);
  z-index: -1;
  pointer-events: none;
}

.md-footer-meta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 15, 20, 0.8) 40%, rgba(11, 15, 20, 1) 100%);
  z-index: -1;
  pointer-events: none;
}

.md-footer__inner,
.md-footer-meta__inner {
  background: transparent !important;
  position: relative !important;
  z-index: 2 !important;
  padding: 1.2rem 1.5rem !important;
}

.md-footer__link,
.md-footer__link:hover {
  color: rgba(74, 214, 200, 0.75) !important;
  opacity: 1 !important;
  transition: color 0.2s ease !important;
}

.md-footer__link:hover {
  color: rgba(74, 214, 200, 1) !important;
}

.md-footer-copyright {
  color: rgba(180, 190, 205, 0.6) !important;
  font-size: 0.85rem !important;
}

/* Hub footer - custom footer */
.hub-footer {
  background: transparent !important;
  border-top: 1px solid rgba(74, 214, 200, 0.15) !important;
}

.hub-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 18, 0.8) 50%, rgba(8, 12, 18, 1) 100%);
  z-index: -1;
  pointer-events: none;
}

.hub-footer__inner {
  background: transparent !important;
}
}

/* Main content z-index fix */
.md-main__inner {
  position: relative;
  z-index: 1;
}

/* Sidebar fixes */
.md-sidebar__scrollwrap {
  padding: 0 0.25rem;
  backface-visibility: hidden;
  margin: 0;
  overflow-y: auto;
  scrollbar-color: hsl(225deg 15% 90% / 0%) #0000;
}






#readingTime {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  top: auto;
  width: fit-content;
  max-width: 70vw;
  background: linear-gradient(135deg, rgb(38 166 154 / 0%), rgb(46 65 98));
  color: #ffffffa6;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 600;
  z-index: var(--z-fixed);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: 'Roboto Mono', monospace;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  cursor: move;
  backdrop-filter: blur(10px);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#readingTime.readingTime--visible {
  opacity: 0.9;
  transform: translateY(0);
}

#readingTime:hover {
  opacity: 1;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

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

#readingTime:active {
  transform: scale(0.98);
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: var(--z-modal);
  opacity: 0.95;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop:hover {
  opacity: 1;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
}

#backToTop:active {
  transform: scale(0.95);
}

#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-progress);
  height: 4px;
  background: var(--gradient);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--primary-color);
}

#shortcuts-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Mono', monospace;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.shortcuts-modal-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.shortcuts-modal-content {
  background: var(--bg-card);
  color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

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

.shortcuts-modal-content h2 {
  margin: 0 0 25px 0;
  color: var(--primary-color);
  font-size: 1.8em;
  text-align: center;
  text-shadow: var(--shadow-glow);
  font-weight: 600;
}

.shortcuts-list {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(38, 166, 154, 0.05);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  font-weight: 500;
}

.shortcut-item:hover {
  background: rgba(38, 166, 154, 0.1);
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.shortcut-keys {
  display: flex;
  gap: 8px;
  align-items: center;
}

.shortcut-desc {
  color: var(--text-muted);
  font-size: 0.95em;
  font-weight: 400;
}

.shortcuts-modal-content kbd {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.85em;
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  min-width: 30px;
  text-align: center;
  display: inline-block;
}

.shortcuts-close-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  margin-top: 20px;
  width: 100%;
  font-size: 1em;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.shortcuts-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
}

.shortcuts-close-btn:active {
  transform: translateY(0);
}

.md-typeset .admonition {
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius);
  background: rgba(38, 166, 154, 0.05);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.md-typeset .admonition:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.md-typeset a {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 500;
}

.md-typeset a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.md-typeset a:hover {
  color: var(--accent-color);
}

.md-typeset a:hover::after {
  width: 100%;
}

.md-typeset table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.md-typeset th,
.md-typeset td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.md-typeset th {
  background: var(--gradient);
  color: white;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.md-typeset tr:nth-child(even) {
  background: rgba(38, 166, 154, 0.02);
}

.md-typeset tr:hover {
  background: rgba(38, 166, 154, 0.05);
  transition: background 0.2s ease;
}

.md-typeset tbody tr:last-child td {
  border-bottom: none;
}

#toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
  opacity: 0;
  transform: translateX(120%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  min-width: 250px;
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.toast__icon {
  flex-shrink: 0;
  font-size: 1.5em;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast__message {
  flex: 1;
  font-size: 0.9em;
  line-height: 1.4;
  word-break: break-word;
  font-weight: 500;
}

.toast--success {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.1), rgba(38, 166, 154, 0.05));
}

.toast--success .toast__icon {
  color: var(--primary-color);
}

.toast--error {
  border-color: #f44336;
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
}

.toast--error .toast__icon {
  color: #f44336;
}

.toast--warning {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
}

.toast--warning .toast__icon {
  color: var(--accent-color);
}

.toast--info {
  border-color: #2196f3;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
}

.toast--info .toast__icon {
  color: #2196f3;
}

@media screen and (max-width: 768px) {

  /* Larger elements for mobile */
  #readingTime {
    top: 70px;
    right: 10px;
    left: auto;
    font-size: 1.1em;
    padding: 12px 18px;
    width: auto;
    min-width: 200px;
  }

  #backToTop {
    bottom: 20px;
    right: 15px;
    width: 65px;
    height: 65px;
    font-size: 28px;
  }

  #toast-container {
    right: 15px;
    left: 15px;
    max-width: calc(100% - 30px);
    top: 120px;
  }

  .toast {
    min-width: auto;
    font-size: 1.1em;
    padding: 16px 20px;
    min-height: 60px;
  }

  .toast__icon {
    font-size: 1.8em;
    width: 30px;
    height: 30px;
  }

  .shortcuts-modal-content {
    padding: 25px;
    margin: 15px;
    max-height: 85vh;
    max-width: calc(100% - 30px);
  }

  .shortcuts-modal-content h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
  }

  .shortcut-item {
    padding: 16px 20px;
    font-size: 1.1em;
    min-height: 70px;
  }

  .shortcuts-close-btn {
    padding: 16px 24px;
    font-size: 1.2em;
    min-height: 60px;
  }

  /* Larger fonts for mobile */
  .md-typeset {
    font-size: 1.3em;
    line-height: 1.7;
  }

  .md-typeset h1 {
    font-size: 3em;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
  }

  .md-typeset h2 {
    font-size: 2.4em;
  }

  .md-typeset h3 {
    font-size: 2em;
  }

  .md-typeset h4 {
    font-size: 1.6em;
  }

  .md-typeset h5 {
    font-size: 1.4em;
  }

  .md-typeset h6 {
    font-size: 1.2em;
  }

  .md-typeset p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
  }

  .md-typeset li {
    font-size: 1.1em;
    margin-bottom: 0.6em;
  }

  .md-typeset code {
    font-size: 1.1em;
    padding: 0.3em 0.5em;
  }

  .md-nav__link {
    font-size: 1.2em;
    padding: 0.8rem 1.2rem;
    min-height: 50px;
  }

  /* Larger table cells */
  .md-typeset th,
  .md-typeset td {
    padding: 16px 20px;
    font-size: 1.1em;
  }

  /* Larger buttons and interactive elements */
  button,
  a,
  .md-nav__link {
    min-height: 50px;
    min-width: 50px;
    font-size: 1.1em;
  }

  /* Larger admonitions */
  .md-typeset .admonition {
    padding: 1.5rem 2rem;
    font-size: 1.1em;
  }
}

@media screen and (max-width: 480px) {

  /* Even larger for very small screens */
  .md-typeset {
    font-size: 1.4em;
    line-height: 1.8;
  }

  .md-typeset h1 {
    font-size: 3.5em;
  }

  .md-typeset h2 {
    font-size: 2.8em;
  }

  .md-typeset h3 {
    font-size: 2.4em;
  }

  .md-typeset p {
    font-size: 1.3em;
  }

  .shortcuts-modal-content {
    padding: 20px;
    margin: 10px;
  }

  .shortcuts-modal-content h2 {
    font-size: 2.5em;
  }

  #readingTime {
    font-size: 1.2em;
    padding: 14px 20px;
    min-width: 220px;
    right: 10px;
    left: auto;
  }

  #backToTop {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }

  .toast {
    font-size: 1.2em;
    padding: 18px 22px;
  }

  .md-nav__link {
    font-size: 1.3em;
    padding: 1rem 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary-color: #00ffff;
    --accent-color: #ffff00;
    --text-light: #ffffff;
    --bg-dark: #000000;
    --border-color: #ffffff;
  }

  .md-typeset code {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
  }

  button,
  a,
  input,
  select,
  textarea {
    border: 1px solid var(--border-color);
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10003;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.md-typeset {
  color: var(--text-light);
}

.md-typeset code:not(.highlight code) {
  color: #e6db74;
}

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

@media print {

  #readingTime,
  #helpButton,
  #backToTop,
  #progressBar,
  #toast-container,
  #shortcuts-modal {
    display: none;
  }
}

@keyframes rainbow {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 10px currentColor;
  }

  50% {
    box-shadow: 0 0 20px currentColor;
  }
}

.md-footer,
.md-footer-meta {
  opacity: 1 !important;
  visibility: visible !important;
  background: rgba(13, 17, 23, 0.95);
  border-top: 1px solid var(--border-color);
}

.md-footer__inner,
.md-footer-meta__inner {
  position: relative;
  z-index: 1;
}

.md-footer__link,
.md-footer__link:hover {
  opacity: 1;
}

@media print {
  body {
    display: none;
  }

  .md-typeset code {
    background: white !important;
    color: black !important;
    border: 1px solid #000;
  }
}

.cj-toyota-shake {
  animation: cj-shake 0.8s cubic-bezier(.36, .07, .19, .97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes cj-shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* Aggressively hide MkDocs Material built-in clipboard toast */
.md-clipboard__message,
.md-tooltip,
[data-md-component="announce"],
.md-announce,
.md-snackbar,
.md-toast {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* CRT Console Effects */
@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }

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

#hacker-console::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

#hacker-console::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: rgb(9 13 18 / 21%);
  --md-code-bg-color: var(--bg-code);
}

@keyframes flicker {
  0% {
    opacity: 0.02795172;
  }

  5% {
    opacity: 0.04853918;
  }

  10% {
    opacity: 0.01255307;
  }

  15% {
    opacity: 0.07962305;
  }

  20% {
    opacity: 0.04942887;
  }

  25% {
    opacity: 0.0946353;
  }

  30% {
    opacity: 0.01026178;
  }

  35% {
    opacity: 0.07954397;
  }

  40% {
    opacity: 0.01303619;
  }

  45% {
    opacity: 0.07954397;
  }

  50% {
    opacity: 0.02365804;
  }

  55% {
    opacity: 0.05362833;
  }

  60% {
    opacity: 0.09067055;
  }

  65% {
    opacity: 0.04183301;
  }

  70% {
    opacity: 0.09263399;
  }

  75% {
    opacity: 0.08384535;
  }

  80% {
    opacity: 0.0326423;
  }

  85% {
    opacity: 0.02687152;
  }

  90% {
    opacity: 0.02660253;
  }

  95% {
    opacity: 0.03693532;
  }

  100% {
    opacity: 0.03818638;
  }
}

/* ============================================
   0x1RIS Hub Design System Extensions
   ============================================ */
:root {
  --md-primary-fg-color: var(--primary-color);
  --md-accent-fg-color: var(--accent-color);
  --hub-bg: #0b0f14;
  --hub-surface: #11161d;
  --hub-surface-2: #141b24;
  --hub-surface-3: #0f1319;
  --hub-accent: #4ad6c8;
  --hub-accent-strong: #ffb454;
  --hub-text-strong: #f8fafc;
  --hub-text: #c8d1dc;
  --hub-text-muted: #8892a6;
  --hub-border: rgba(148, 163, 184, 0.18);
  --hub-border-strong: rgba(74, 214, 200, 0.35);
  --hub-radius-sm: 8px;
  --hub-radius-md: 14px;
  --hub-radius-lg: 22px;
  --hub-shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.35);
  --hub-shadow-glow: 0 0 30px rgba(74, 214, 200, 0.18);
  --hub-grid-gap: clamp(1rem, 2vw, 2rem);
  --hub-section-pad: clamp(2rem, 4vw, 4.5rem);
}

.md-header {
  border-bottom: 1px solid rgba(74, 214, 200, 0.2);
}

.hub-home {
  padding-bottom: 4rem;
}

.hub-hero {
  padding: var(--hub-section-pad) 0 3rem 0;
}

.hub-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hub-hero__content h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  color: var(--hub-text-strong);
  margin: 0.5rem 0 1rem 0;
  text-shadow: var(--hub-shadow-glow);
}

.hub-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--hub-accent);
  margin: 0;
}

.hub-hero__lead {
  font-size: 1.1rem;
  color: var(--hub-text);
  max-width: 36rem;
}

.hub-hero__actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 214, 200, 0.4);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hub-button--primary {
  background: linear-gradient(120deg, rgba(74, 214, 200, 0.2), rgba(255, 180, 84, 0.15));
  color: var(--hub-text-strong);
  box-shadow: var(--hub-shadow-soft);
}

.hub-button--ghost {
  background: transparent;
  color: var(--hub-text);
}

.hub-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(74, 214, 200, 0.25);
}

.hub-hero__stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.hub-stat__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hub-text-muted);
}

.hub-stat__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hub-text-strong);
}

.hub-hero__panel {
  background: var(--hub-surface);
  border-radius: var(--hub-radius-lg);
  border: 1px solid var(--hub-border);
  box-shadow: var(--hub-shadow-soft);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hub-console {
  color: var(--hub-text-strong);
  font-family: 'Roboto Mono', monospace;
}

.hub-console__header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--hub-text-muted);
  border-bottom: 1px solid var(--hub-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.hub-console__body p {
  margin: 0 0 0.65rem 0;
  font-size: 0.95rem;
}

.hub-console__prompt {
  color: var(--hub-accent);
  margin-right: 0.5rem;
}

.hub-section {
  padding: 0 0 var(--hub-section-pad) 0;
}

.hub-section__header {
  margin-bottom: 1.8rem;
}

.hub-section__header h2 {
  margin: 0 0 0.4rem 0;
  color: var(--hub-text-strong);
}

.hub-section__header p {
  margin: 0;
  color: var(--hub-text-muted);
}

.hub-grid {
  display: grid;
  gap: var(--hub-grid-gap);
}

.hub-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hub-card {
  background: var(--hub-surface-2);
  border-radius: var(--hub-radius-md);
  border: 1px solid var(--hub-border);
  padding: 1.25rem 1.4rem;
  color: var(--hub-text);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.hub-card__title {
  color: var(--hub-text-strong);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--hub-border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hub-callout {
  background: linear-gradient(135deg, rgba(74, 214, 200, 0.08), rgba(255, 180, 84, 0.08));
  border-radius: var(--hub-radius-lg);
  border: 1px solid rgba(74, 214, 200, 0.2);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.hub-callout__inner h2 {
  margin-top: 0;
  color: var(--hub-text-strong);
}

.hub-callout__actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hub-updates__list {
  display: grid;
  gap: 0.85rem;
}

.hub-update {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: var(--hub-radius-sm);
  border: 1px solid var(--hub-border);
  background: rgba(17, 22, 29, 0.7);
  color: var(--hub-text);
  text-decoration: none;
}

.hub-update__title {
  font-weight: 600;
  color: var(--hub-text-strong);
}

.hub-update__meta {
  font-size: 0.8rem;
  color: var(--hub-text-muted);
}

.hub-footer {
  background: rgba(8, 12, 18, 0.98);
  border-top: 1px solid rgba(74, 214, 200, 0.2);
  padding: 1rem 1.5rem;
}

.hub-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--hub-text-muted);
  font-size: 0.85rem;
}

.hub-footer__copy {
  color: var(--hub-text-muted);
}

.hub-footer__social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hub-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  color: var(--hub-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hub-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hub-social--github:hover {
  background: #24292f;
  color: #ffffff;
}

.hub-social--linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
}

.hub-social--telegram:hover {
  background: #2aabee;
  color: #ffffff;
}

.md-search__form,
.md-search__input {
  border-radius: 999px !important;
  border: none !important;
  outline: none;
  background: rgba(15, 19, 25, 0.6);
  box-shadow: none;
}

.md-search__input {
  padding-left: 2.2rem;
}

.md-search__input:focus {
  box-shadow: 0 0 0 2px rgba(74, 214, 200, 0.4);
}

.md-search__inner,
.md-search__output,
.md-search__scrollwrap,
.md-search-result,
.md-search__suggest {
  border-radius: 18px;
  background: rgba(15, 19, 25, 0.75);
  border: 1px solid rgba(74, 214, 200, 0.18);
}

.md-search__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0.5rem;
}

.md-search__output {
  margin-top: 0.75rem;
  overflow: hidden;
  max-height: 70vh;
}

.md-search__scrollwrap {
  border: none;
  padding: 0.25rem;
}

.md-search-result__list {
  padding: 0.4rem 0.6rem 0.6rem 0.6rem;
  border-radius: 14px;
}

.md-search-result__item {
  border-radius: 12px;
  padding: 0.35rem 0.5rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.md-search-result__item:hover {
  background: rgba(74, 214, 200, 0.08);
}

.md-search-result__link {
  border-radius: 10px;
}

.md-search__suggest {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.md-search__overlay {
  backdrop-filter: blur(10px);
}

.md-search-result__meta,
.md-search-result__teaser {
  color: rgba(74, 214, 200, 0.65);
  border-radius: 10px;
}

.md-search-result__title {
  color: var(--hub-text-strong);
}

.md-nav--secondary .md-nav__title {
  display: none;
}

.md-nav--secondary .md-nav__list {
  margin-top: 0;
  padding-top: 0.25rem;
  padding-left: 0.5rem;
}

.md-nav--secondary .md-nav__link {
  padding-left: 0.5rem;
}


.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--hub-radius-md);
  border: 1px solid rgba(74, 214, 200, 0.2);
}

.md-typeset pre > code {
  border-radius: var(--hub-radius-md);
}

/* .md-sidebar__inner {
  border-right: 1px solid rgba(74, 214, 200, 0.08);
} */

@media screen and (max-width: 900px) {
  .hub-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hub-hero__grid {
    grid-template-columns: 1fr;
  }

  .hub-hero__panel {
    order: -1;
  }
}

/* ============================================
   Homepage layout fixes + floating UI offsets
   ============================================ */
:root {
  --hub-floating-top: 96px;
  --hub-floating-right: 20px;
}

body[data-md-page-path="index"] .md-sidebar--primary,
body[data-md-page-path="index"] .md-sidebar--secondary {
  display: none;
}

body[data-md-page-path="index"] .md-main__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

body[data-md-page-path="index"] .md-content {
  max-width: 100%;
}

body[data-md-page-path="index"] .hub-hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

body[data-md-page-path="index"] .hub-hero__grid {
  align-items: start;
}

body[data-md-page-path="index"] .hub-hero__content {
  max-width: 36rem;
}

body[data-md-page-path="index"] .hub-section {
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

body[data-md-page-path="index"] .hub-callout {
  margin-top: 1rem;
}

body[data-md-page-path="index"] .hub-grid {
  align-items: stretch;
}

.hub-card {
  min-height: 120px;
}

.hub-card:active {
  transform: translateY(-1px);
}

#readingTime {
  top: var(--hub-floating-top);
  right: var(--hub-floating-right);
}

@media screen and (max-width: 900px) {
  #readingTime {
    bottom: 96px;
    left: 16px;
  }

  #backToTop {
    bottom: 20px;
    right: 16px;
  }
}

/* Final read-time guardrail: keep chip compact and pinned bottom-left */
#readingTime {
  top: auto !important;
  right: auto !important;
  bottom: 24px !important;
  left: 24px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: min(360px, calc(100vw - 32px)) !important;
  white-space: normal !important;
}

@media screen and (max-width: 900px) {
  #readingTime {
    bottom: 84px !important;
    left: 16px !important;
    max-width: calc(100vw - 32px) !important;
  }
}

/* ============================================
   Canonical layout overrides (conflict guard)
   ============================================ */
body:has(.hub-home),
body[data-md-page-path="index"],
body[data-md-page-path="index.md"] {
  --hub-home-max: 1320px;
  --hub-home-gap: clamp(1.5rem, 3vw, 3rem);
}

body:has(.hub-home) .md-sidebar--primary,
body:has(.hub-home) .md-sidebar--secondary,
body[data-md-page-path="index"] .md-sidebar--primary,
body[data-md-page-path="index"] .md-sidebar--secondary,
body[data-md-page-path="index.md"] .md-sidebar--primary,
body[data-md-page-path="index.md"] .md-sidebar--secondary {
  display: none !important;
}

body:has(.hub-home) .md-main__inner,
body[data-md-page-path="index"] .md-main__inner,
body[data-md-page-path="index.md"] .md-main__inner {
  max-width: var(--hub-home-max);
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

body:has(.hub-home) .md-content,
body[data-md-page-path="index"] .md-content,
body[data-md-page-path="index.md"] .md-content {
  max-width: 100%;
}

.hub-home {
  position: relative;
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.hub-home::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background:
    radial-gradient(600px 240px at 18% 0%, rgba(74, 214, 200, 0.16), transparent 65%),
    radial-gradient(540px 220px at 82% 0%, rgba(255, 180, 84, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hub-home > * {
  position: relative;
  z-index: 1;
}

.hub-hero {
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}

.hub-hero__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: var(--hub-home-gap);
  align-items: stretch;
}

.hub-hero__content {
  max-width: 42rem;
}

.hub-hero__content h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.04;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hub-hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.55;
  max-width: 34rem;
}

.hub-hero__actions {
  margin-top: 1.8rem;
  gap: 0.85rem;
}

.hub-hero__stats {
  margin-top: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-hero__panel {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(74, 214, 200, 0.2);
  background: linear-gradient(165deg, rgba(20, 25, 35, 0.85), rgba(10, 14, 22, 0.88));
  min-height: 100%;
}

.hub-console__body p {
  font-size: clamp(0.92rem, 1.2vw, 1.15rem);
  line-height: 1.45;
}

.hub-section {
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.hub-section__header {
  margin-bottom: 1.2rem;
}

.hub-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-card {
  min-height: 148px;
  padding: 1.2rem 1.2rem;
  background: linear-gradient(165deg, rgba(20, 27, 36, 0.88), rgba(13, 18, 26, 0.9));
}

.hub-callout {
  padding: clamp(1.2rem, 2.3vw, 2rem);
  border-color: rgba(74, 214, 200, 0.24);
}

/* Canonical dedup targets */
.md-sidebar__scrollwrap {
  padding: 0 0.25rem;
  margin: 0;
}

.md-nav__item--active > .md-nav__link {
  color: var(--accent-color);
  font-weight: 600;
  background: rgba(38, 166, 154, 0.1);
  padding-left: calc(1rem - 4px);
}

.md-search__inner,
.md-search__output,
.md-search__scrollwrap,
.md-search-result {
  border-radius: 18px;
}

@media screen and (max-width: 1080px) {
  .hub-hero__grid {
    grid-template-columns: 1fr;
  }

  .hub-hero__panel {
    order: 2;
  }

  .hub-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ============================================
   Canonical Home + Search v2
   ============================================ */
:root {
  --hub-v2-max: 1320px;
  --hub-v2-gap: clamp(1.1rem, 2.4vw, 2.2rem);
  --hub-v2-radius: 18px;
  --hub-v2-bg-1: rgba(11, 17, 26, 0.88);
  --hub-v2-bg-2: rgba(18, 26, 36, 0.92);
  --hub-v2-line: rgba(74, 214, 200, 0.26);
  --hub-v2-glow: 0 0 0 1px rgba(74, 214, 200, 0.18), 0 10px 30px rgba(0, 0, 0, 0.35);
}

body:has(.hub-home),
body[data-md-page-path="index"],
body[data-md-page-path="index.md"] {
  --hub-v2-home: 1;
}

body:has(.hub-home) .md-sidebar--primary,
body:has(.hub-home) .md-sidebar--secondary,
body[data-md-page-path="index"] .md-sidebar--primary,
body[data-md-page-path="index"] .md-sidebar--secondary,
body[data-md-page-path="index.md"] .md-sidebar--primary,
body[data-md-page-path="index.md"] .md-sidebar--secondary {
  display: none !important;
}

body:has(.hub-home) .md-main__inner,
body[data-md-page-path="index"] .md-main__inner,
body[data-md-page-path="index.md"] .md-main__inner {
  max-width: var(--hub-v2-max);
  margin: 0 auto;
  padding-inline: clamp(1rem, 2.3vw, 2rem);
}

body:has(.hub-home) .md-content,
body[data-md-page-path="index"] .md-content,
body[data-md-page-path="index.md"] .md-content {
  max-width: 100%;
}

.hub-home {
  position: relative;
  padding-bottom: clamp(2.5rem, 4vw, 4.5rem);
}

.hub-home::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(52vw, 560px);
  pointer-events: none;
  background:
    radial-gradient(720px 320px at 16% 2%, rgba(74, 214, 200, 0.15), transparent 62%),
    radial-gradient(660px 280px at 84% 2%, rgba(255, 180, 84, 0.1), transparent 60%);
  z-index: 0;
}

.hub-home > * {
  position: relative;
  z-index: 1;
}

.hub-v2-hero {
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(1.8rem, 3vw, 3rem);
}

.hub-v2-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: var(--hub-v2-gap);
  align-items: stretch;
}

.hub-v2-hero__content h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.hub-v2-hero__content .hub-hero__lead {
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  line-height: 1.58;
  max-width: 36rem;
}

.hub-v2-hero__stats {
  margin-top: 1.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hub-v2-hero__panel {
  border-radius: 22px;
  border: 1px solid var(--hub-v2-line);
  background:
    linear-gradient(170deg, var(--hub-v2-bg-2), var(--hub-v2-bg-1)),
    repeating-linear-gradient(90deg, rgba(74, 214, 200, 0.05), rgba(74, 214, 200, 0.05) 1px, transparent 1px, transparent 96px);
  box-shadow: var(--hub-v2-glow);
}

.hub-v2-section {
  padding-bottom: clamp(1.8rem, 3.6vw, 3.4rem);
}

.hub-v2-section .hub-section__header {
  margin-bottom: 1.1rem;
}

.hub-v2-matrix {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hub-v2-gap);
}

.hub-v2-card {
  min-height: 154px;
  border: 1px solid rgba(74, 214, 200, 0.2);
  background: linear-gradient(165deg, rgba(18, 26, 36, 0.9), rgba(12, 18, 28, 0.92));
  box-shadow: var(--hub-v2-glow);
}

.hub-v2-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 214, 200, 0.36);
}

.hub-v2-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem var(--hub-v2-gap);
}

.hub-v2-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(74, 214, 200, 0.2);
  background: rgba(12, 18, 28, 0.75);
  text-decoration: none;
  color: var(--hub-text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hub-v2-step:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 214, 200, 0.38);
  background: rgba(14, 22, 34, 0.95);
}

.hub-v2-step__num {
  font-weight: 700;
  color: var(--hub-accent);
  letter-spacing: 0.08em;
}

.hub-v2-step__text {
  color: var(--hub-text-strong);
}

.hub-v2-callout {
  border: 1px solid rgba(74, 214, 200, 0.24);
  background:
    linear-gradient(155deg, rgba(74, 214, 200, 0.08), rgba(255, 180, 84, 0.08)),
    rgba(13, 20, 30, 0.9);
}

/* Search: one authoritative centered command panel */
.md-search__inner {
  width: min(840px, calc(100vw - 2rem)) !important;
  margin: 0 auto !important;
  padding: 0.55rem !important;
  border-radius: 22px !important;
  border: 1px solid rgba(74, 214, 200, 0.28) !important;
  background: linear-gradient(165deg, rgba(12, 18, 28, 0.94), rgba(14, 22, 34, 0.94)) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(74, 214, 200, 0.12) !important;
}

.md-search__form {
  border-radius: 999px !important;
  border: 1px solid rgba(74, 214, 200, 0.3) !important;
  background: rgba(8, 14, 22, 0.95) !important;
}

.md-search__input {
  padding-left: 2.5rem !important;
  min-height: 52px;
  font-size: 1.06rem;
  border-radius: 999px !important;
  background: transparent !important;
}

.md-search__input:focus {
  box-shadow: inset 0 0 0 1px rgba(74, 214, 200, 0.55), 0 0 0 3px rgba(74, 214, 200, 0.12) !important;
}

.md-search__output {
  margin-top: 0.65rem !important;
  border-radius: var(--hub-v2-radius) !important;
  border: 1px solid rgba(74, 214, 200, 0.2) !important;
  background: rgba(10, 16, 25, 0.95) !important;
  overflow: hidden !important;
  max-height: 70vh;
}

.md-search__scrollwrap {
  border-radius: var(--hub-v2-radius) !important;
  padding: 0.35rem !important;
  background: transparent !important;
}

.md-search-result {
  border-radius: 14px !important;
}

.md-search-result__meta {
  margin: 0.2rem 0.3rem 0.45rem 0.3rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: rgba(74, 214, 200, 0.08);
  color: rgba(132, 236, 223, 0.9);
  border: 1px solid rgba(74, 214, 200, 0.18);
}

.md-search-result__list {
  padding: 0.2rem !important;
  gap: 0.5rem;
}

.md-search-result__item {
  border-radius: 12px !important;
  border: 1px solid rgba(124, 144, 170, 0.2);
  background: linear-gradient(165deg, rgba(14, 20, 30, 0.9), rgba(11, 17, 26, 0.92));
  padding: 0.45rem 0.55rem !important;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.md-search-result__item:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 214, 200, 0.4);
  background: linear-gradient(165deg, rgba(16, 24, 36, 0.95), rgba(12, 18, 29, 0.95));
}

.md-search-result__title {
  color: #e8f6f5 !important;
}

.md-search-result__teaser {
  color: rgba(173, 193, 213, 0.92) !important;
}

.md-search-result mark {
  background: rgba(74, 214, 200, 0.2);
  color: #c6fff8;
  border-radius: 4px;
  padding: 0.08em 0.24em;
}

.md-search__overlay {
  background: rgba(4, 8, 14, 0.55);
  backdrop-filter: blur(8px);
}

/* Medium motion profile */
.hub-v2-hero__content,
.hub-v2-hero__panel,
.hub-v2-section {
  animation: hub-v2-enter 480ms ease-out both;
}

.hub-v2-hero__panel {
  animation-delay: 90ms;
}

.hub-v2-section:nth-of-type(2) {
  animation-delay: 140ms;
}

.hub-v2-section:nth-of-type(3) {
  animation-delay: 190ms;
}

.hub-v2-section:nth-of-type(4) {
  animation-delay: 240ms;
}

@keyframes hub-v2-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .hub-v2-hero__content,
  .hub-v2-hero__panel,
  .hub-v2-section {
    animation: none !important;
    transform: none !important;
  }
}

@media screen and (max-width: 1080px) {
  .hub-v2-hero__grid {
    grid-template-columns: 1fr;
  }

  .hub-v2-hero__panel {
    order: 2;
  }

  .hub-v2-matrix {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .hub-v2-timeline {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Canonical Search v3 (header-native)
   ============================================ */
.md-search__inner {
  width: min(760px, calc(100vw - 2rem)) !important;
  margin: 0 auto !important;
  padding: 0.35rem !important;
  border-radius: 16px !important;
  border: 1px solid rgba(74, 214, 200, 0.2) !important;
  background: rgba(10, 16, 24, 0.9) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32) !important;
}

.md-search__form {
  border-radius: 999px !important;
  border: 1px solid rgba(74, 214, 200, 0.28) !important;
  background: rgba(11, 17, 26, 0.92) !important;
  box-shadow: none !important;
}

.md-search__input {
  min-height: 46px !important;
  padding-left: 2.25rem !important;
  padding-right: 0.9rem !important;
  font-size: 1rem !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.md-search__input:focus {
  box-shadow: inset 0 0 0 1px rgba(74, 214, 200, 0.48), 0 0 0 2px rgba(74, 214, 200, 0.11) !important;
}

.md-search__output {
  margin-top: 0.45rem !important;
  border-radius: 14px !important;
  border: 1px solid rgba(74, 214, 200, 0.16) !important;
  background: rgba(9, 14, 22, 0.94) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32) !important;
  overflow: hidden !important;
  max-height: 68vh !important;
}

.md-search__scrollwrap {
  border: none !important;
  border-radius: 14px !important;
  background: transparent !important;
  padding: 0.2rem !important;
}

.md-search-result {
  border-radius: 12px !important;
  background: transparent !important;
  border: none !important;
}

.md-search-result__meta {
  margin: 0.2rem 0.35rem 0.35rem 0.35rem !important;
  padding: 0.35rem 0.6rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(74, 214, 200, 0.14) !important;
  background: rgba(74, 214, 200, 0.06) !important;
  color: rgba(143, 214, 205, 0.9) !important;
}

.md-search-result__list {
  padding: 0.1rem !important;
  border-radius: 10px !important;
}

.md-search-result__item {
  border-radius: 10px !important;
  border: 1px solid rgba(120, 138, 158, 0.18) !important;
  background: rgba(12, 19, 29, 0.8) !important;
  padding: 0.32rem 0.5rem !important;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease !important;
}

.md-search-result__item:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 214, 200, 0.32) !important;
  background: rgba(14, 22, 33, 0.95) !important;
}

.md-search-result__title {
  color: #e8f5f3 !important;
}

.md-search-result__teaser {
  color: rgba(175, 190, 208, 0.9) !important;
}

.md-search-result mark {
  background: rgba(74, 214, 200, 0.18) !important;
  color: #c6fff8 !important;
  border-radius: 4px !important;
  padding: 0.04em 0.2em !important;
}

.md-search__overlay {
  background: rgba(4, 8, 14, 0.55) !important;
  backdrop-filter: blur(8px) !important;
}

/* ============================================
   CLEAN SEARCH UI - Fixed and working
   ============================================ */
.md-search {
  position: relative !important;
}

.md-search__inner {
  position: relative !important;
  width: min(520px, calc(100vw - 1.5rem)) !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  margin-left: auto !important;
  margin-right: 0.5rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  background: transparent !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

.md-search__form {
  min-height: 2.8rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(53, 207, 194, 0.35) !important;
  background: rgba(8, 15, 25, 0.92) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  position: relative !important;
  overflow: visible !important;
}

.md-search__input {
  min-height: 2.8rem !important;
  height: 2.8rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.4rem 2.2rem !important;
  font-size: 1rem !important;
  color: #d9e6ef !important;
  background: transparent !important;
}

.md-search__input::placeholder {
  color: rgba(190, 206, 219, 0.6) !important;
}

.md-search__input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.md-search__form:focus-within {
  border-color: rgba(53, 207, 194, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(53, 207, 194, 0.15), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* Search icons */
.md-search__icon {
  color: rgba(53, 207, 194, 0.7) !important;
  left: 0.6rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  padding: 6px !important;
  background: transparent !important;
}

.md-search__icon:hover {
  color: rgba(53, 207, 194, 1) !important;
}

.md-search__icon svg {
  width: 20px !important;
  height: 20px !important;
}

/* Search output dropdown */
.md-search__output {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  margin-top: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(53, 207, 194, 0.25) !important;
  background: rgba(10, 16, 24, 0.98) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden !important;
  max-height: 60vh !important;
  z-index: 1000 !important;
}

.md-search__scrollwrap {
  padding: 0.2rem !important;
  background: transparent !important;
  border: 0 !important;
}

.md-search-result {
  background: transparent !important;
  border: 0 !important;
}

.md-search-result__meta {
  margin: 0.3rem 0.4rem !important;
  padding: 0.4rem 0.6rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(53, 207, 194, 0.15) !important;
  background: rgba(53, 207, 194, 0.08) !important;
  color: rgba(53, 207, 194, 0.85) !important;
  font-size: 0.8rem !important;
}

.md-search-result__list {
  padding: 0.1rem 0.2rem !important;
}

.md-search-result__item {
  margin: 0.25rem 0 !important;
  padding: 0.5rem 0.7rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(53, 207, 194, 0.12) !important;
  background: rgba(10, 18, 28, 0.6) !important;
  transition: all 0.2s ease !important;
}

.md-search-result__item:hover {
  border-color: rgba(53, 207, 194, 0.35) !important;
  background: rgba(53, 207, 194, 0.08) !important;
  transform: translateX(2px) !important;
}

.md-search-result__title {
  color: #e8f5f3 !important;
  font-weight: 500 !important;
}

.md-search-result__teaser {
  color: rgba(174, 188, 206, 0.8) !important;
  font-size: 0.85rem !important;
}

.md-search-result mark {
  background: rgba(53, 207, 194, 0.2) !important;
  color: #c6fff8 !important;
  border-radius: 3px !important;
  padding: 0.05em 0.15em !important;
}

/* Search overlay - for when search expands */
.md-search__overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(5, 8, 14, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 999 !important;
}

/* Search options */
.md-search__options {
  right: 0.5rem !important;
}

.md-search__form {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 247, 255, 0.3) !important;
  background: rgba(10, 15, 20, 0.9) !important;
  position: relative !important;
  overflow: visible !important;
}

.md-search__input {
  min-height: 40px !important;
  padding-left: 3rem !important;
  padding-right: 3rem !important;
  font-size: 0.9rem !important;
  color: #00f7ff !important;
  background: transparent !important;
  border-radius: 8px !important;
  font-family: 'Roboto Mono', monospace !important;
  font-weight: 500 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.md-search__input::placeholder {
  color: rgba(176, 38, 255, 0.6) !important;
  font-size: 1rem !important;
}

.md-search__input:focus {
  box-shadow: inset 0 0 0 2px rgba(0, 247, 255, 0.5), 0 0 20px rgba(0, 247, 255, 0.4) !important;
  outline: none !important;
  background: rgba(10, 15, 20, 0.95) !important;
}

.md-search__output {
  margin-top: 0.6rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0, 247, 255, 0.3) !important;
  background: rgba(10, 15, 20, 0.98) !important;
  max-height: 50vh !important;
  min-height: 200px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-shadow: 0 0 25px rgba(0, 247, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.md-search__scrollwrap {
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  padding: 0.8rem !important;
  max-height: inherit !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.md-search-result {
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  max-width: 100% !important;
  overflow: visible !important;
  width: 100% !important;
}

.md-search-result__meta {
  margin: 0 0 0.8rem 0 !important;
  padding: 0.5rem 0.8rem !important;
  border-radius: 6px !important;
  background: rgba(0, 247, 255, 0.15) !important;
  color: rgba(0, 247, 255, 0.95) !important;
  border: 1px solid rgba(0, 247, 255, 0.2) !important;
  font-family: 'Roboto Mono', monospace !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

.md-search-result__list {
  padding: 0 !important;
  border-radius: 6px !important;
  list-style: none !important;
  max-width: 100% !important;
  overflow: visible !important;
  width: 100% !important;
}

.md-search-result__item {
  border-radius: 6px !important;
  border: 1px solid rgba(176, 38, 255, 0.3) !important;
  background: rgba(10, 15, 20, 0.9) !important;
  padding: 0.6rem !important;
  transition: all 0.2s ease !important;
  margin-bottom: 0.4rem !important;
  max-width: 100% !important;
  overflow: hidden !important;
  word-wrap: break-word !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.md-search-result__item:hover {
  border-color: rgba(0, 247, 255, 0.5) !important;
  background: rgba(10, 15, 20, 0.95) !important;
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.3), 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-2px) !important;
}

.md-search-result__link {
  color: inherit !important;
  text-decoration: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.md-search-result__article {
  color: inherit !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  word-wrap: break-word !important;
  box-sizing: border-box !important;
}

.md-search-result__title {
  color: #00f7ff !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin: 0 0 0.3rem 0 !important;
  line-height: 1.3 !important;
  word-wrap: break-word !important;
  max-width: 100% !important;
}

.md-search-result__teaser {
  color: rgba(176, 38, 255, 0.9) !important;
  line-height: 1.4 !important;
  font-size: 0.8rem !important;
  margin: 0.3rem 0 0 0 !important;
  word-wrap: break-word !important;
  max-width: 100% !important;
}

.md-search-result mark {
  background: rgba(0, 247, 255, 0.25) !important;
  color: #00f7ff !important;
  border-radius: 3px !important;
  padding: 0.1em 0.2em !important;
  font-weight: 700 !important;
  box-shadow: 0 0 5px rgba(0, 247, 255, 0.3) !important;
}

.md-search__overlay {
  background: rgba(10, 15, 20, 0.85) !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 4999 !important;
  backdrop-filter: blur(8px) !important;
}

/* Search icons - LARGER AND VISIBLE */
.md-search__icon {
  color: rgba(0, 247, 255, 0.9) !important;
  transition: all 0.2s ease !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  position: absolute !important;
  left: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(0, 247, 255, 0.15) !important;
  z-index: 10 !important;
}

.md-search__icon:hover {
  color: #00f7ff !important;
  background: rgba(0, 247, 255, 0.25) !important;
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.5) !important;
}

.md-search__icon svg {
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
}

/* Search options - DYNAMIC CLEAR BUTTON */
.md-search__options {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.2s ease !important;
}

/* Show clear button only when search is active or has content */
.md-search__form:has(.md-search__input:focus) .md-search__options,
.md-search__form:has(.md-search__input:not(:placeholder-shown)) .md-search__options {
  opacity: 1 !important;
  visibility: visible !important;
}

.md-search__options button {
  background: rgba(0, 247, 255, 0.1) !important;
  border: 1px solid rgba(0, 247, 255, 0.3) !important;
  border-radius: 6px !important;
  padding: 6px !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.8 !important;
  transition: all 0.2s ease !important;
}

.md-search__options button:hover {
  background: rgba(0, 247, 255, 0.2) !important;
  border-color: rgba(0, 247, 255, 0.5) !important;
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

.md-search__options button svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  color: rgba(0, 247, 255, 0.9) !important;
}

/* AUTOCOMPLETE DROPDOWN - HIDE THE DROPDOWN */
.md-search__suggest[data-md-component="search-suggest"],
.md-search__suggest ul,
.md-search__suggest li {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* INLINE SUGGESTION - SHOW IN SEARCH INPUT */
.md-search__suggest {
  position: absolute !important;
  bottom: auto !important;
  top: 50% !important;
  right: 40px !important;
  transform: translateY(-50%) !important;
  font-size: 0.7rem !important;
  color: rgba(176, 38, 255, 0.6) !important;
  font-family: 'Roboto Mono', monospace !important;
  font-weight: 400 !important;
  z-index: 5 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease !important;
  display: block !important;
  visibility: visible !important;
  font-style: italic !important;
}

.md-search__suggest:hover {
  opacity: 1 !important;
  color: rgba(176, 38, 255, 0.8) !important;
}

.md-search__suggest ul {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.md-search__suggest li {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Result more details - HIDE THE MASSIVE DROPDOWN */
.md-search-result__more {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.md-search-result__more summary {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.md-search-result__more details {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.md-search-result__more a {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Result icon */
.md-search-result__icon {
  display: none !important;
}

/* Enhanced hover effects */
.md-search-result__item:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(0, 247, 255, 0.5) !important;
  background: rgba(10, 15, 20, 0.95) !important;
  box-shadow: 0 0 25px rgba(0, 247, 255, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* Code blocks in search results */
.md-search-result pre {
  background: rgba(10, 15, 20, 0.9) !important;
  border: 1px solid rgba(0, 247, 255, 0.3) !important;
  border-radius: 6px !important;
  padding: 1rem !important;
  margin: 0.8rem 0 !important;
  font-size: 0.9rem !important;
  overflow-x: auto !important;
  max-width: 100% !important;
  word-wrap: break-word !important;
  white-space: pre-wrap !important;
  box-sizing: border-box !important;
}

.md-search-result code {
  color: #00f7ff !important;
  font-family: 'Roboto Mono', monospace !important;
  font-size: 0.9rem !important;
  background: transparent !important;
}

/* Lists in search results */
.md-search-result ul, .md-search-result ol {
  margin: 0.8rem 0 !important;
  padding-left: 1.8rem !important;
  color: rgba(176, 38, 255, 0.9) !important;
  font-size: 0.9rem !important;
  max-width: 100% !important;
}

.md-search-result li {
  margin: 0.3rem 0 !important;
  line-height: 1.5 !important;
  word-wrap: break-word !important;
  max-width: 100% !important;
}

/* PROPER SCROLLING */
.md-search__output::-webkit-scrollbar {
  width: 8px !important;
}

.md-search__output::-webkit-scrollbar-track {
  background: rgba(10, 15, 20, 0.6) !important;
  border-radius: 4px !important;
}

.md-search__output::-webkit-scrollbar-thumb {
  background: rgba(0, 247, 255, 0.4) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(0, 247, 255, 0.2) !important;
}

.md-search__output::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 247, 255, 0.6) !important;
  box-shadow: 0 0 5px rgba(0, 247, 255, 0.3) !important;
}

.md-search__scrollwrap::-webkit-scrollbar {
  width: 8px !important;
}

.md-search__scrollwrap::-webkit-scrollbar-track {
  background: rgba(10, 15, 20, 0.6) !important;
  border-radius: 4px !important;
}

.md-search__scrollwrap::-webkit-scrollbar-thumb {
  background: rgba(0, 247, 255, 0.4) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(0, 247, 255, 0.2) !important;
}

.md-search__scrollwrap::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 247, 255, 0.6) !important;
  box-shadow: 0 0 5px rgba(0, 247, 255, 0.3) !important;
}

/* ============================================
   Canonical Experience v5 (security vibe + unified search)
   ============================================ */
:root {
  --hub-v5-bg-base: #070c15;
  --hub-v5-bg-grid: rgba(29, 80, 88, 0.18);
  --hub-v5-bg-grid-soft: rgba(22, 54, 74, 0.12);
  --hub-v5-accent: #35cfc2;
  --hub-v5-accent-soft: rgba(53, 207, 194, 0.24);
  --hub-v5-copper: #e2a92f;
  --hub-v5-panel: rgba(10, 17, 28, 0.88);
  --hub-v5-panel-border: rgba(87, 138, 161, 0.32);
  --hub-v5-text: #d9e6ef;
  --hub-v5-muted: #8ea4b7;
}

body {
  background-color: var(--hub-v5-bg-base) !important;
  background-image:
    radial-gradient(circle at 12% 16%, rgba(52, 142, 143, 0.24), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(190, 119, 38, 0.16), transparent 30%),
    linear-gradient(120deg, rgba(7, 11, 20, 0.96), rgba(7, 14, 24, 0.9));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(var(--hub-v5-bg-grid-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hub-v5-bg-grid-soft) 1px, transparent 1px),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(11, 20, 34, 0.28) 38px 40px);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  opacity: 0.74;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 207, 194, 0.08), transparent 42%),
    radial-gradient(circle at 88% 88%, rgba(226, 169, 47, 0.08), transparent 28%);
}

.md-typeset h2,
.md-typeset h3 {
  letter-spacing: 0.01em;
}

/*.md-typeset h2::before {
  content: "__";
  color: var(--hub-v5-accent);
  opacity: 0.9;
}*/

.md-typeset h3::before {
  content: "0x ";
  color: var(--hub-v5-copper);
  opacity: 0.9;
}

/* Unified compact search (wins final cascade) */
.md-search__inner {
  width: min(520px, calc(100vw - 1.5rem)) !important;
  margin-inline: 0 !important;
  margin-left: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  background: transparent !important;
}

.md-search__form {
  min-height: 3rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(53, 207, 194, 0.36) !important;
  background: rgba(8, 15, 25, 0.94) !important;
  box-shadow: 0 0 0 1px rgba(7, 12, 19, 0.65), 0 8px 18px rgba(0, 0, 0, 0.24) !important;
}

.md-search__input {
  min-height: 3rem !important;
  height: 3rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.55rem 2.35rem !important;
  font-size: 1.03rem !important;
  color: var(--hub-v5-text) !important;
  background: transparent !important;
}

.md-search__input::placeholder {
  color: rgba(190, 206, 219, 0.76) !important;
}

.md-search__form:focus-within {
  border-color: rgba(53, 207, 194, 0.62) !important;
  box-shadow: 0 0 0 1px rgba(53, 207, 194, 0.4), 0 0 0 4px rgba(53, 207, 194, 0.14), 0 12px 24px rgba(0, 0, 0, 0.3) !important;
}

.md-search__output {
  margin-top: 0.45rem !important;
  border-radius: 14px !important;
  border: 1px solid var(--hub-v5-panel-border) !important;
  background: var(--hub-v5-panel) !important;
  box-shadow: 0 16px 28px rgba(3, 7, 14, 0.62) !important;
  overflow: hidden !important;
  max-height: min(64vh, 560px) !important;
}

.md-search__scrollwrap,
.md-search-result,
.md-search-result__list {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.md-search__scrollwrap {
  padding: 0.15rem !important;
}

.md-search-result__meta {
  margin: 0.25rem !important;
  padding: 0.42rem 0.72rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(53, 207, 194, 0.22) !important;
  background: rgba(53, 207, 194, 0.08) !important;
  color: rgba(151, 220, 212, 0.9) !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.01em !important;
}

.md-search-result__item {
  margin: 0.35rem !important;
  padding: 0.42rem 0.65rem !important;
  border-radius: 11px !important;
  border: 1px solid rgba(65, 99, 122, 0.45) !important;
  background: rgba(10, 18, 30, 0.8) !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease !important;
}

.md-search-result__item:hover,
.md-search-result__item:focus-within {
  border-color: rgba(53, 207, 194, 0.5) !important;
  background: rgba(11, 22, 36, 0.96) !important;
  transform: translateY(-1px);
}

.md-search-result__title {
  color: var(--hub-v5-text) !important;
}

.md-search-result__teaser {
  color: var(--hub-v5-muted) !important;
}

.md-search-result mark {
  border-radius: 5px !important;
  padding: 0.02em 0.2em !important;
  background: rgba(53, 207, 194, 0.2) !important;
  color: #d5fff8 !important;
}

.md-search__overlay {
  background: rgba(5, 10, 17, 0.44) !important;
  backdrop-filter: blur(4px) !important;
}

/* Read time + top button polish */
#readingTime {
  top: auto !important;
  right: auto !important;
  left: 16px !important;
  bottom: 16px !important;
  width: auto !important;
  max-width: min(320px, calc(100vw - 24px)) !important;
  padding: 0.4rem 0.72rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(53, 207, 194, 0.3) !important;
  background: rgba(8, 16, 26, 0.86) !important;
  color: #d5ece8 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(2, 5, 10, 0.42) !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

#readingTime:hover {
  border-color: rgba(53, 207, 194, 0.56) !important;
  background: rgba(9, 20, 31, 0.95) !important;
}

#backToTop {
  right: 16px !important;
  bottom: 16px !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: linear-gradient(140deg, rgba(53, 207, 194, 0.93), rgba(226, 169, 47, 0.93)) !important;
  color: #08121b !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.34), 0 0 0 2px rgba(8, 12, 19, 0.6) !important;
}

#backToTop:hover {
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(53, 207, 194, 0.24) !important;
}

/* Help/shortcuts menu cleanup */
#shortcuts-modal {
  background: rgba(3, 7, 13, 0.78) !important;
  backdrop-filter: blur(6px);
}

.shortcuts-modal-overlay {
  padding: clamp(1rem, 3vw, 2rem) !important;
}

.shortcuts-modal-content {
  width: min(860px, 96vw) !important;
  max-height: min(82vh, 760px) !important;
  border: 1px solid rgba(53, 207, 194, 0.32) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(160deg, rgba(10, 17, 27, 0.98), rgba(7, 14, 23, 0.96)),
    repeating-linear-gradient(90deg, rgba(22, 44, 59, 0.1) 0 1px, transparent 1px 22px) !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.52) !important;
}

.shortcuts-modal-content h2 {
  color: #def6f2 !important;
  border-bottom: 1px solid rgba(53, 207, 194, 0.24) !important;
  padding-bottom: 0.8rem !important;
}

.shortcuts-list {
  margin-top: 0.7rem;
}

.shortcut-item {
  border: 1px solid rgba(64, 100, 120, 0.36) !important;
  border-radius: 10px !important;
  background: rgba(10, 20, 33, 0.68) !important;
}

.shortcut-item:hover {
  border-color: rgba(53, 207, 194, 0.42) !important;
  background: rgba(13, 25, 39, 0.92) !important;
}

.shortcuts-close-btn {
  border-radius: 999px !important;
  border: 1px solid rgba(53, 207, 194, 0.38) !important;
  background: rgba(9, 18, 28, 0.88) !important;
  color: #d7f0eb !important;
}

.shortcuts-close-btn:hover {
  background: rgba(15, 28, 41, 0.95) !important;
  border-color: rgba(53, 207, 194, 0.62) !important;
}

@media (max-width: 900px) {
  .md-search__inner {
    width: calc(100vw - 1rem) !important;
  }

  .md-search__form,
  .md-search__input {
    min-height: 2.65rem !important;
    height: 2.65rem !important;
  }

  #readingTime {
    left: 12px !important;
    bottom: 12px !important;
    font-size: 0.66rem !important;
  }

  #backToTop {
    right: 12px !important;
    bottom: 12px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-search__form,
  .md-search-result__item,
  #readingTime,
  #backToTop {
    transition: none !important;
  }
}

/* ============================================
   Canonical Search v6 (medium compact)
   ============================================ */
.md-header .md-search__inner {
  width: clamp(320px, 28vw, 380px) !important;
  max-width: calc(100vw - 1rem) !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 26px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.md-header .md-search__form {
  min-height: 2.4rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(53, 207, 194, 0.35) !important;
  background: rgba(8, 14, 23, 0.92) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.26) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.md-header .md-search__form::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(45deg, transparent, rgba(0, 247, 255, 0.03), transparent) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}

.md-header .md-search__form:focus-within {
  border-color: rgba(0, 247, 255, 0.6) !important;
  background: rgba(8, 16, 26, 0.96) !important;
  box-shadow: 0 0 0 2px rgba(0, 247, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.28) !important;
  transform: translateY(-1px) !important;
}

.md-header .md-search__form:focus-within::before {
  opacity: 1 !important;
}

.md-header .md-search__input {
  min-height: 2.4rem !important;
  height: 2.4rem !important;
  padding: 0.4rem 2rem !important;
  font-size: 0.9rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.md-header .md-search__form:focus-within {
  border-color: rgba(53, 207, 194, 0.62) !important;
  box-shadow: 0 0 0 2px rgba(53, 207, 194, 0.16), 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

.md-search__output {
  margin-top: 0.3rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(70, 112, 136, 0.42) !important;
  background: rgba(9, 15, 24, 0.95) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42) !important;
  max-height: min(45vh, 380px) !important;
  min-height: 200px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Dynamic height based on content */
.md-search__output:has(.md-search-result__item:nth-child(1)):not(:has(.md-search-result__item:nth-child(10))) {
  max-height: 300px !important;
}

.md-search__output:has(.md-search-result__item:nth-child(5)):not(:has(.md-search-result__item:nth-child(15))) {
  max-height: 400px !important;
}

.md-search__output:has(.md-search-result__item:nth-child(10)) {
  max-height: min(60vh, 500px) !important;
}

/* Compact mode for few results */
.md-search__output:has(.md-search-result__item:nth-child(1)):not(:has(.md-search-result__item:nth-child(3))) {
  min-height: auto !important;
  max-height: 250px !important;
}

.md-search__scrollwrap {
  padding: 0.1rem !important;
}

.md-search-result__item {
  margin: 0.4rem 0 !important;
  padding: 0.8rem 1rem !important;
  border-radius: 8px !important;
  background: rgba(10, 15, 20, 0.6) !important;
  border: 1px solid rgba(0, 247, 255, 0.2) !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(5px) !important;
}

.md-search-result__item:hover {
  background: rgba(0, 247, 255, 0.1) !important;
  border-color: rgba(0, 247, 255, 0.4) !important;
  transform: translateX(2px) !important;
}

.md-search-result__meta {
  margin: 0.8rem 0 !important;
  padding: 0.6rem 1rem !important;
  background: rgba(176, 38, 255, 0.1) !important;
  border: 1px solid rgba(176, 38, 255, 0.3) !important;
  border-radius: 8px !important;
  color: rgba(176, 38, 255, 0.9) !important;
  font-family: 'Roboto Mono', monospace !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  backdrop-filter: blur(5px) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 900px) {
  .md-header .md-search__inner {
    width: calc(100vw - 0.75rem) !important;
  }

  .md-header .md-search__form,
  .md-header .md-search__input {
    min-height: 2.55rem !important;
    height: 2.55rem !important;
  }
}

/* ============================================
   Separate Reading Time & Shortcuts Icons - Compact Size
   ============================================ */
#shortcutsIcon {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  background: linear-gradient(135deg, rgba(11, 17, 26, 0.9), rgba(15, 23, 32, 0.85)) !important;
  border: 1px solid rgba(74, 214, 200, 0.3) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  color: rgba(232, 245, 243, 0.8) !important;
  font-family: 'Roboto Mono', monospace !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  cursor: move !important;
  z-index: 1000 !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(74, 214, 200, 0.15) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  min-width: auto !important;
  text-shadow: 0 0 5px rgba(74, 214, 200, 0.2) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shortcutsIcon:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(74, 214, 200, 0.25) !important;
  background: linear-gradient(135deg, rgba(11, 17, 26, 0.95), rgba(15, 23, 32, 0.9)) !important;
  border-color: rgba(74, 214, 200, 0.4) !important;
  color: rgba(232, 245, 243, 0.9) !important;
  text-shadow: 0 0 8px rgba(74, 214, 200, 0.3) !important;
}

#readingTime {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  background: linear-gradient(135deg, rgba(11, 17, 26, 0.9), rgba(15, 23, 32, 0.85)) !important;
  border: 1px solid rgba(176, 38, 255, 0.3) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  color: rgba(232, 245, 243, 0.8) !important;
  font-family: 'Roboto Mono', monospace !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  cursor: move !important;
  z-index: 1000 !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(176, 38, 255, 0.15) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  min-width: auto !important;
  text-shadow: 0 0 5px rgba(176, 38, 255, 0.2) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#readingTime:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(176, 38, 255, 0.25) !important;
  background: linear-gradient(135deg, rgba(11, 17, 26, 0.95), rgba(15, 23, 32, 0.9)) !important;
  border-color: rgba(176, 38, 255, 0.4) !important;
  color: rgba(232, 245, 243, 0.9) !important;
  text-shadow: 0 0 8px rgba(176, 38, 255, 0.3) !important;
}

/* ============================================
   Creative Back to Top Button - Blog Style
   ============================================ */
.md-to-top {
  position: fixed !important;
  bottom: 80px !important;
  right: 20px !important;
  width: 45px !important;
  height: 45px !important;
  background: linear-gradient(135deg, rgba(11, 17, 26, 0.95), rgba(15, 23, 32, 0.9)) !important;
  border: 2px solid rgba(0, 247, 255, 0.4) !important;
  border-radius: 50% !important;
  color: rgba(0, 247, 255, 0.9) !important;
  font-family: 'Roboto Mono', monospace !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  z-index: 999 !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 247, 255, 0.2), 0 0 20px rgba(0, 247, 255, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px) scale(0.8) !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

.md-to-top::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: linear-gradient(45deg, transparent, rgba(0, 247, 255, 0.1), transparent) !important;
  transform: rotate(45deg) !important;
  transition: all 0.6s ease !important;
  opacity: 0 !important;
}

.md-to-top::after {
  content: '↑' !important;
  position: absolute !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  z-index: 1 !important;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.5) !important;
  animation: pulse-up 2s infinite !important;
}

.md-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

.md-to-top:hover {
  background: linear-gradient(135deg, rgba(11, 17, 26, 1), rgba(15, 23, 32, 0.95)) !important;
  border-color: rgba(0, 247, 255, 0.6) !important;
  color: rgba(0, 247, 255, 1) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 247, 255, 0.4), 0 0 30px rgba(0, 247, 255, 0.3) !important;
  transform: translateY(-2px) scale(1.05) !important;
  text-shadow: 0 0 15px rgba(0, 247, 255, 0.8) !important;
}

.md-to-top:hover::before {
  animation: shimmer 0.6s ease !important;
  opacity: 1 !important;
}

.md-to-top:active {
  transform: translateY(0) scale(0.95) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 247, 255, 0.3), 0 0 15px rgba(0, 247, 255, 0.2) !important;
}

/* Creative animations */
@keyframes pulse-up {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-3px); opacity: 0.8; }
}

@keyframes shimmer {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .md-to-top {
    width: 40px !important;
    height: 40px !important;
    bottom: 60px !important;
    right: 15px !important;
    font-size: 1rem !important;
    border-width: 1.5px !important;
  }
  
  .md-to-top::after {
    font-size: 1rem !important;
  }
}

/* ============================================
   Translate Button & Selection Popup
   ============================================ */

/* Ensure text selection works globally */
.md-content, .md-content *, .md-typeset, .md-typeset * {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

/* Allow text selection on all content except specific UI elements */
body, body * {
  user-select: auto !important;
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
}

/* Keep user-select: none only for specific UI elements */
#readingTime, #backToTop, .md-header, .md-nav, .md-sidebar, 
.md-search__form, .md-search__options, button:not(.selection-popup button),
.md-footer, .hub-footer, .toast, .shortcuts-modal {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.selection-popup {
  position: fixed !important;
  background: rgba(11, 17, 26, 0.98) !important;
  border: 1px solid rgba(0, 247, 255, 0.4) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 247, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 99999 !important;
  min-width: 280px !important;
  max-width: 400px !important;
  font-family: 'Roboto Mono', monospace !important;
  color: #e8f5f3 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.selection-popup .action-row {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
  align-items: center !important;
}

.selection-popup button {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.2), rgba(0, 247, 255, 0.1)) !important;
  color: #00f7ff !important;
  border: 1px solid rgba(0, 247, 255, 0.4) !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: 'Roboto Mono', monospace !important;
  pointer-events: auto !important;
  user-select: none !important;
}

.selection-popup button:hover {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.3), rgba(0, 247, 255, 0.2)) !important;
  border-color: rgba(0, 247, 255, 0.6) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 247, 255, 0.3) !important;
}

.selection-popup button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
  pointer-events: none !important;
}

.selection-popup .result-box {
  background: rgba(0, 247, 255, 0.05) !important;
  border: 1px solid rgba(0, 247, 255, 0.2) !important;
  border-radius: 6px !important;
  padding: 10px !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: rgba(232, 245, 243, 0.9) !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure translate button is visible and clickable */
.selection-popup .translate-btn {
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.2), rgba(176, 38, 255, 0.1)) !important;
  color: #b026ff !important;
  border: 1px solid rgba(176, 38, 255, 0.4) !important;
}

.selection-popup .translate-btn:hover {
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.3), rgba(176, 38, 255, 0.2)) !important;
  border-color: rgba(176, 38, 255, 0.6) !important;
  box-shadow: 0 4px 12px rgba(176, 38, 255, 0.3) !important;
}

.selection-popup .replace-btn {
  background: linear-gradient(135deg, rgba(74, 214, 200, 0.2), rgba(74, 214, 200, 0.1)) !important;
  color: #4ad6c8 !important;
  border: 1px solid rgba(74, 214, 200, 0.4) !important;
}

.selection-popup .replace-btn:hover {
  background: linear-gradient(135deg, rgba(74, 214, 200, 0.3), rgba(74, 214, 200, 0.2)) !important;
  border-color: rgba(74, 214, 200, 0.6) !important;
  box-shadow: 0 4px 12px rgba(74, 214, 200, 0.3) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .selection-popup {
    min-width: 240px !important;
    max-width: 320px !important;
    padding: 10px !important;
  }
  
  .selection-popup button {
    font-size: 0.75rem !important;
    padding: 5px 10px !important;
  }
}

/* ============================================
   MOBILE NAVIGATION - FIXED PROPERLY
   ============================================ */

@media (max-width: 768px) {
  /* CRITICAL: Override original CSS hiding of overlay */
  html .md-overlay,
  body .md-overlay,
  .md-overlay {
    display: block !important;
    visibility: visible !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* Show overlay when drawer is open */
  [data-md-state="drawer"] .md-overlay,
  .md-drawer[data-md-state="lock"] ~ .md-overlay,
  .md-sidebar--primary[data-md-state="lock"] ~ .md-overlay,
  body[data-md-state="drawer"] .md-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  /* Mobile header */
  .md-header {
    padding: 0.3rem 0.4rem !important;
    min-height: 48px !important;
  }

  .md-header__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 0.25rem !important;
  }

  /* Menu button (hamburger) */
  .md-header__button--menu {
    display: flex !important;
    visibility: visible !important;
    padding: 0.4rem !important;
    margin: 0 !important;
  }

  /* Header title */
  .md-header__title {
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 0.5rem !important;
  }

  .md-header__topic {
    font-size: 0.85rem !important;
  }

  /* Header end buttons */
  .md-header__end {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
  }

  /* Search button */
  .md-header__button[for="__search"] {
    display: flex !important;
    padding: 0.4rem !important;
  }

  /* Mobile drawer - use correct MkDocs Material class */
  .md-sidebar--primary.md-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: min(85vw, 320px) !important;
    height: 100vh !important;
    max-width: 320px !important;
    z-index: 1001 !important;
    background: rgba(13, 17, 23, 0.98) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.25s ease !important;
    box-shadow: none !important;
  }

  /* Override original CSS - must be more specific */
  html .md-sidebar--primary,
  body .md-sidebar--primary {
    transform: translateX(-100%) !important;
  }
  
  html .md-sidebar--primary[data-md-state="lock"],
  body .md-sidebar--primary[data-md-state="lock"] {
    transform: translateX(0) !important;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.6) !important;
  }

  .md-sidebar--primary.md-drawer .md-nav {
    padding: 0.75rem 0.5rem !important;
    background: transparent !important;
  }

  .md-sidebar--primary.md-drawer .md-nav__list {
    padding-top: 0.5rem !important;
  }

  .md-sidebar--primary.md-drawer .md-nav__item {
    margin: 0.1rem 0 !important;
  }

  .md-sidebar--primary.md-drawer .md-nav__link {
    padding: 0.65rem 0.8rem !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    margin: 0.1rem 0 !important;
  }

  /* CRITICAL: Override original CSS that hides overlay completely */
  html .md-overlay[for="__drawer"],
  body .md-overlay[for="__drawer"],
  html body .md-overlay[for="__drawer"],
  html body [class*="md-overlay"] {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    top: 48px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
  }

  /* Show overlay when drawer is locked - but only content area */
  html .md-sidebar--primary[data-md-state="lock"] ~ .md-overlay[for="__drawer"],
  body .md-sidebar--primary[data-md-state="lock"] ~ .md-overlay[for="__drawer"],
  html[data-md-state="drawer"] .md-overlay[for="__drawer"],
  body[data-md-state="drawer"] .md-overlay[for="__drawer"] {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Don't hide sidebar - it's our drawer - show on ALL pages */
  html .md-sidebar--primary,
  body .md-sidebar--primary {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: min(85vw, 320px) !important;
    height: 100vh !important;
    max-width: 320px !important;
    z-index: 1001 !important;
    transform: translateX(-100%) !important;
  }
  
  /* Override index-only rules */
  html body[data-md-page-path="index"] .md-sidebar--primary,
  html body[data-md-page-path="index.md"] .md-sidebar--primary,
  html body:has(.hub-home) .md-sidebar--primary {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    transform: translateX(-100%) !important;
  }

  /* When locked - show drawer */
  html .md-sidebar--primary[data-md-state="lock"],
  body .md-sidebar--primary[data-md-state="lock"] {
    transform: translateX(0) !important;
  }

  /* Hide TOC on mobile */
  .md-sidebar--secondary,
  .md-nav--secondary {
    display: none !important;
  }

  /* Content styling */
  .md-content {
    padding: 0.75rem !important;
    font-size: 0.95rem !important;
  }

  .md-content__inner {
    padding: 0.5rem !important;
  }

  /* Typography */
  .md-typeset h1 { font-size: 1.6rem !important; }
  .md-typeset h2 { font-size: 1.35rem !important; }
  .md-typeset h3 { font-size: 1.15rem !important; }
  .md-typeset p { font-size: 0.95rem !important; margin: 0.7rem 0 !important; }

  /* Code */
  .md-typeset code {
    font-size: 0.82rem !important;
    padding: 0.15rem 0.35rem !important;
  }

  .md-typeset pre {
    font-size: 0.8rem !important;
    padding: 0.6rem !important;
    overflow-x: auto !important;
  }

  /* Tables */
  .md-typeset table {
    font-size: 0.82rem !important;
    display: block !important;
    overflow-x: auto !important;
  }

  /* Tabs - show as scrollable */
  .md-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 0.25rem 0.5rem !important;
  }

  .md-tabs__list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.15rem !important;
  }

  .md-tabs__link {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
  }

  /* Back to top */
  #backToTop {
    width: 44px !important;
    height: 44px !important;
    right: 10px !important;
    bottom: 10px !important;
    font-size: 1.2rem !important;
  }

  /* Reading time */
  #readingTime {
    font-size: 0.6rem !important;
    padding: 0.3rem 0.5rem !important;
    left: 10px !important;
    bottom: 10px !important;
    max-width: 180px !important;
  }

  /* Footer */
  .md-footer {
    padding: 0.75rem !important;
    font-size: 0.8rem !important;
  }
}

/* Alternative blog-style variants */
.md-to-top.blog-style-2 {
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.1), rgba(176, 38, 255, 0.05)) !important;
  border-color: rgba(176, 38, 255, 0.4) !important;
  color: rgba(176, 38, 255, 0.9) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(176, 38, 255, 0.2), 0 0 20px rgba(176, 38, 255, 0.15) !important;
}

.md-to-top.blog-style-2::after {
  color: rgba(176, 38, 255, 0.9) !important;
  text-shadow: 0 0 10px rgba(176, 38, 255, 0.5) !important;
}

.md-to-top.blog-style-2:hover {
  border-color: rgba(176, 38, 255, 0.6) !important;
  color: rgba(176, 38, 255, 1) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(176, 38, 255, 0.4), 0 0 30px rgba(176, 38, 255, 0.3) !important;
}
.md-header {
  background: rgba(6, 10, 16, 0.9) !important;
  border-bottom: 1px solid rgba(74, 214, 200, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s ease !important;
}

.md-header__inner {
  background: transparent !important;
  padding: 0 1rem !important;
}

/* Logo */
.md-header__button.md-logo {
  background: transparent !important;
  border: none !important;
  padding: 0.4rem !important;
  transition: opacity 0.2s ease !important;
}

.md-header__button.md-logo:hover {
  opacity: 0.8 !important;
  background: rgba(74, 214, 200, 0.1) !important;
  border-radius: 8px !important;
}

.md-header__button.md-logo img {
  border-radius: 4px !important;
}

/* Header buttons */
.md-header__button.md-icon {
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.5rem !important;
  margin: 0 0.1rem !important;
  transition: all 0.2s ease !important;
}

.md-header__button.md-icon:hover {
  background: rgba(74, 214, 200, 0.15) !important;
}

.md-header__button.md-icon svg {
  width: 18px !important;
  height: 18px !important;
  color: rgba(74, 214, 200, 0.8) !important;
}

.md-header__button.md-icon:hover svg {
  color: #4ad6c8 !important;
}

/* Header title */
.md-header__title {
  background: transparent !important;
  border: none !important;
  padding: 0.3rem 0.6rem !important;
}

.md-header__topic {
  color: #e8f5f3 !important;
  font-family: 'Roboto Mono', monospace !important;
  font-weight: 500 !important;
}

.md-header__topic .md-ellipsis {
  color: rgba(74, 214, 200, 0.9) !important;
}

/* Search button */
.md-header__button[for="__search"] {
  background: transparent !important;
  border: none !important;
}

.md-header__button[for="__search"]:hover {
  background: rgba(74, 214, 200, 0.15) !important;
  border-radius: 6px !important;
}

/* Navigation tabs */
.md-tabs {
  background: rgba(6, 10, 16, 0.8) !important;
  border-bottom: 1px solid rgba(74, 214, 200, 0.2) !important;
}

.md-tabs__list {
  background: transparent !important;
  padding: 0.4rem 1rem !important;
}

.md-tabs__link {
  background: transparent !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 0.3rem 0.6rem !important;
  color: rgba(224, 245, 243, 0.8) !important;
  font-family: 'Roboto Mono', monospace !important;
  font-weight: 400 !important;
  transition: all 0.2s ease !important;
}

.md-tabs__link:hover {
  background: rgba(74, 214, 200, 0.15) !important;
  color: #e8f5f3 !important;
}

.md-tabs__link--active {
  background: rgba(74, 214, 200, 0.2) !important;
  color: #4ad6c8 !important;
  font-weight: 500 !important;
}

/* Responsive */
@media (max-width: 59.9375em) {
  .md-header__button.md-icon {
    padding: 0.4rem !important;
  }
  
  .md-header__button.md-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ============================= */
/*  GLOBAL COLORS               */
/* ============================= */
:root {
  --neon-cyan: #00f7ff;
  --neon-purple: #b026ff;
  --dark-core: #0a0f14;
  --alert-red: #ff2e63;
}

/* ============================= */
/*  COMPLETE SCROLLBAR REMOVAL  */
/* ============================= */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-track {
  display: none !important;
}

::-webkit-scrollbar-thumb {
  display: none !important;
}

::-webkit-scrollbar-button {
  display: none !important;
}

::-webkit-scrollbar-corner {
  display: none !important;
}

/* ============================= */
/* ============================================
   CUSTOM CURSORS - OPTIMIZED & CLEAN
   ============================================ */

/* Disable custom cursors on mobile for performance */
@media (max-width: 768px) {
  * {
    cursor: auto !important;
  }
}

/* Base cursor styles for desktop only */
@media (min-width: 769px) {
  /* DEFAULT CURSOR - Clean pointer */
  body, div, span, section, article, main, aside, nav, header, footer {
    cursor: auto !important;
  }

  /* IMAGES - Zoom cursor */
  img:not(.md-icon):not([class*="logo"]):not([class*="favicon"]) {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='8' cy='8' r='3' fill='none' stroke='%2300f7ff' stroke-width='1.5'/><line x1='11' y1='11' x2='16' y2='16' stroke='%23b026ff' stroke-width='1.5'/></svg>") 8 8, zoom-in !important;
  }

  /* NAVIGATION - Diamond cursor */
  .md-tabs__link, .md-nav__link {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><path d='M2 8 L10 2 L18 8 L10 14 Z' fill='%2300f7ff' stroke='%230a0f14' stroke-width='1'/></svg>") 10 10, pointer !important;
  }

  /* SEARCH RESULTS - Clock cursor */
  .md-search-result__item {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='10' cy='10' r='5' fill='none' stroke='%2300f7ff' stroke-width='1.5'/><path d='M10 5 L10 10 L13 13' stroke='%23b026ff' stroke-width='1.5' fill='none'/></svg>") 10 10, pointer !important;
  }

  /* TEXT SELECTION - I-beam cursor */
  .md-content p, .md-content li, .md-content span, .md-typeset p, .md-typeset li, .md-typeset span {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><line x1='10' y1='3' x2='10' y2='17' stroke='%2300f7ff' stroke-width='2'/><line x1='6' y1='5' x2='14' y2='5' stroke='%23b026ff' stroke-width='1'/><line x1='6' y1='15' x2='14' y2='15' stroke='%23b026ff' stroke-width='1'/></svg>") 10 10, text !important;
  }

  /* BUTTONS AND LINKS - Enhanced cursor */
  a:not(.md-nav__link):not(.md-tabs__link), button:not(.md-icon), .md-button {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='10' cy='10' r='6' fill='%2300f7ff' stroke='%230a0f14' stroke-width='1'/><circle cx='10' cy='10' r='2' fill='%230a0f14'/></svg>") 10 10, pointer !important;
  }

  /* HEADER BUTTONS - Simple pointer */
  .md-header__button, .md-icon {
    cursor: pointer !important;
  }

  /* DRAGGABLE ELEMENTS - Move cursor */
  #readingTime, #backToTop, .draggable {
    cursor: move !important;
  }

  /* CODE BLOCKS - Text cursor */
  code, pre, .highlight, .codehilite {
    cursor: text !important;
  }

  /* INPUT FIELDS - Text cursor */
  input, textarea, .md-search__input {
    cursor: text !important;
  }

  /* DISABLED ELEMENTS - Not allowed */
  .disabled, [disabled], .md-disabled {
    cursor: not-allowed !important;
  }
}

/* ============================================
   FINAL CLEAN SEARCH OVERRIDE
   Removes all broken Neon-Glitch mess
   ============================================ */

/* Reset search to work properly - hide output, we'll use custom modal */
.md-search {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.md-search__inner {
  position: relative !important;
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

/* Hide the default search form and output - we use custom modal */
.md-search__form,
.md-search__input,
.md-search__output,
.md-search__scrollwrap,
.md-search-result,
.md-search__overlay {
  display: none !important;
  visibility: hidden !important;
}

/* Keep search button visible to trigger custom modal */
.md-header__button[for="__search"] {
  display: flex !important;
  visibility: visible !important;
}

/* Ensure mobile hamburger works */
@media (max-width: 768px) {
  .md-header__button--menu {
    display: flex !important;
    visibility: visible !important;
  }
  
  .md-search__inner {
    max-width: 100% !important;
  }
  
  /* Header - show hamburger and make it visible */
  .md-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.4rem 0.5rem !important;
  }
  
  .md-header__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  
  /* Logo and title area */
  .md-header__topic {
    flex: 1 !important;
    min-width: 0 !important;
  }
  
  /* Header buttons on right */
  .md-header__end {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
  }
  
  /* Menu button */
  .md-header__button.md-icon--menu {
    display: flex !important;
    margin: 0 !important;
    padding: 0.4rem !important;
  }
  
  /* Search button */
  .md-header__button[for="__search"] {
    display: flex !important;
    margin: 0 !important;
    padding: 0.4rem !important;
  }
}

/* ============================================
   CUSTOM SEARCH MODAL - UNIQUE 0x1RIS STYLE
   ============================================ */

/* Hide default MkDocs search output and make it our custom one */
.md-search__output {
  display: none !important;
}

/* Custom search overlay container */
#custom-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.92);
  backdrop-filter: blur(12px);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#custom-search-overlay.active {
  display: flex;
  opacity: 1;
}

/* Search modal container */
#custom-search-modal {
  width: min(640px, calc(100vw - 2rem));
  max-height: 75vh;
  background: linear-gradient(165deg, rgba(16, 24, 36, 0.98), rgba(10, 16, 26, 0.98));
  border: 1px solid rgba(74, 214, 200, 0.3);
  border-radius: 16px;
  box-shadow: 
    0 0 60px rgba(74, 214, 200, 0.15),
    0 25px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#custom-search-overlay.active #custom-search-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Search input area */
.custom-search-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(74, 214, 200, 0.15);
  gap: 0.75rem;
}

.custom-search-icon {
  color: rgba(74, 214, 200, 0.7);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.custom-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e8f5f3;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.custom-search-input::placeholder {
  color: rgba(160, 180, 200, 0.5);
}

.custom-search-close {
  background: rgba(74, 214, 200, 0.1);
  border: 1px solid rgba(74, 214, 200, 0.2);
  border-radius: 8px;
  color: rgba(74, 214, 200, 0.8);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.custom-search-close:hover {
  background: rgba(74, 214, 200, 0.2);
  border-color: rgba(74, 214, 200, 0.4);
  color: rgba(74, 214, 200, 1);
}

/* Search results */
.custom-search-results {
  max-height: calc(75vh - 70px);
  overflow-y: auto;
  padding: 0.5rem;
}

.custom-search-results::-webkit-scrollbar {
  width: 6px;
}

.custom-search-results::-webkit-scrollbar-track {
  background: transparent;
}

.custom-search-results::-webkit-scrollbar-thumb {
  background: rgba(74, 214, 200, 0.3);
  border-radius: 3px;
}

.custom-search-result {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  margin-bottom: 0.35rem;
  transition: all 0.2s ease;
}

.custom-search-result:hover,
.custom-search-result:focus {
  background: rgba(74, 214, 200, 0.08);
  border-color: rgba(74, 214, 200, 0.25);
  transform: translateX(4px);
}

.custom-search-result-title {
  color: #e8f5f3;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.custom-search-result-path {
  color: rgba(74, 214, 200, 0.7);
  font-size: 0.75rem;
  font-family: 'Roboto Mono', monospace;
}

.custom-search-result-preview {
  color: rgba(170, 185, 205, 0.75);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.custom-search-result-preview mark {
  background: rgba(74, 214, 200, 0.25);
  color: #c6fff8;
  padding: 0.05em 0.25em;
  border-radius: 3px;
}

/* No results state */
.custom-search-empty {
  text-align: center;
  padding: 2rem;
  color: rgba(170, 185, 205, 0.6);
}

.custom-search-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Search loading */
.custom-search-loading {
  text-align: center;
  padding: 1.5rem;
  color: rgba(74, 214, 200, 0.7);
}

/* Keyboard hint */
.custom-search-hint {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(74, 214, 200, 0.1);
  font-size: 0.75rem;
  color: rgba(150, 165, 180, 0.5);
}

.custom-search-hint kbd {
  background: rgba(74, 214, 200, 0.1);
  border: 1px solid rgba(74, 214, 200, 0.2);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-family: 'Roboto Mono', monospace;
  color: rgba(74, 214, 200, 0.6);
}

/* Result badges */
.custom-search-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.result-badge {
  font-size: 0.65rem;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.badge-title {
  background: rgba(74, 214, 200, 0.2);
  color: #4ad6c8;
  border: 1px solid rgba(74, 214, 200, 0.3);
}

.badge-match {
  background: rgba(255, 152, 0, 0.2);
  color: #ffb454;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

/* ============================================
   MOBILE NAVIGATION - 0x1RIS
   ============================================ */

/* Force hide original hamburger and overlay */
html .md-header__button--menu,
html body .md-header__button--menu,
html .md-header__button.md-icon--menu,
html .md-overlay[for="__drawer"],
html body .md-overlay[for="__drawer"],
html .md-sidebar--primary,
html body .md-sidebar--primary {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .md-header__button--menu,
  .md-overlay[for="__drawer"],
  .md-sidebar--primary {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 10002;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid rgba(74, 214, 200, 0.3);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(38, 166, 154, 0.2);
  border-color: rgba(74, 214, 200, 0.6);
}

.nav-toggle.active {
  background: rgba(38, 166, 154, 0.3);
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #4ad6c8;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Show hamburger only on mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .md-header {
    padding-left: 60px !important;
  }
}

/* Navigation Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: min(85vw, 320px);
  max-width: 320px;
  height: 100vh;
  background: rgba(13, 17, 23, 0.98);
  border-right: 1px solid rgba(74, 214, 200, 0.2);
  z-index: 10003;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer.open {
  transform: translateX(0);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
}

.nav-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(74, 214, 200, 0.2);
  background: rgba(22, 27, 34, 0.8);
}

.nav-drawer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4ad6c8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-drawer-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(74, 214, 200, 0.3);
  border-radius: 6px;
  color: #f0f6fc;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-drawer-close:hover {
  background: rgba(255, 152, 0, 0.2);
  border-color: rgba(255, 152, 0, 0.5);
}

.nav-drawer-content {
  padding: 16px 12px;
}

.nav-drawer-content .md-nav {
  background: transparent !important;
}

.nav-drawer-content .md-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-drawer-content .md-nav__item {
  margin: 4px 0;
}

.nav-drawer-content .md-nav__link {
  display: block;
  padding: 12px 16px;
  color: #f0f6fc;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-drawer-content .md-nav__link:hover,
.nav-drawer-content .md-nav__link[aria-current="page"] {
  background: rgba(38, 166, 154, 0.15);
  color: #4ad6c8;
}

.nav-drawer-content .md-nav__link--active {
  background: rgba(38, 166, 154, 0.2);
  color: #4ad6c8;
  border-left: 3px solid #4ad6c8;
}

.nav-drawer-content .md-nav__item--nested > .md-nav__link {
  font-weight: 600;
  color: #8b949e;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.nav-drawer-content .md-nav__item--nested > .md-nav {
  padding-left: 8px;
  display: none;
}

.nav-drawer-content .md-nav__item--nested.nav-item-expanded > .md-nav {
  display: block;
}

.nav-drawer-content .md-nav__item--nested.nav-item-expanded > .md-nav__link::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 6px;
}

.nav-drawer-content .md-nav__item--nested > .md-nav__link::after {
  content: "▶";
  font-size: 0.6rem;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

/* Show drawer on mobile */
@media (max-width: 768px) {
  .nav-drawer {
    display: block;
  }
}

/* Navigation Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

/* Show overlay on mobile */
@media (max-width: 768px) {
  .nav-overlay {
    display: block;
  }
  
  body.drawer-open {
    overflow: hidden;
  }
  
  body.drawer-open .md-main {
    filter: blur(4px);
  }
}
