@property --reveal-r {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
  }
  :root {
    --paper: #111214;
    --paper-sunk: #17181b;
    --ink: #edeef0;
    --ink-soft: #a3a8b0;
    --ink-faint: #6d7178;
    --line: #2a2c30;
    --accent: #6d9bff;
    --accent-soft: rgba(109, 155, 255, 0.16);
    --mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
    --inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --brand-title: #f2f3f5;
    --brand-sub: #9aa0a8;
    --fc-bg: #18191c;
    --fc-title: #f2f3f5;
    --fc-sub: #9aa0a8;
    --radar-card-bg: #191d22;
    --radar-card-border: rgba(255, 255, 255, 0.12);
    --radar-card-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    --radar-chassis-bg: #111317;
    --radar-chassis-border: rgba(255, 255, 255, 0.1);
    --radar-chassis-top: rgba(0, 0, 0, 0.3);
    --radar-chassis-top-line: rgba(255, 255, 255, 0.05);
    --radar-grid-line: rgba(255, 255, 255, 0.03);
    --radar-shutter-bg: linear-gradient(180deg, rgba(28, 33, 40, 0.96) 0%, rgba(18, 21, 26, 0.98) 100%);
    --radar-shutter-border: rgba(255, 255, 255, 0.15);
    --radar-shutter-sub: rgba(255, 255, 255, 0.08);
    --radar-shutter-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
    --radar-title: #ffffff;
    --radar-sub: #10b981;
    --radar-original: #94a3b8;
    --radar-pill-bg: rgba(255, 255, 255, 0.06);
    --radar-pill-color: #94a3b8;
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
  }
  .page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 64px;
  }
  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  }

  /* ---------- header ---------- */
  .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--inter);
  }
  .brand .mark {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-title);
    white-space: nowrap;
  }
  .brand .mark .type {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
  }
  .brand .mark .cursor {
    display: inline-block;
    vertical-align: middle;
    width: 2px;
    height: 0.85em;
    background: #0088ff;
    margin-left: 0;
    opacity: 1;
  }
  .brand .mark .cursor.blink {
    animation: blink 1.1s step-end infinite;
  }
  .brand .sub {
    font-family: var(--inter);
    font-weight: 400;
    font-size: 14px;
    color: var(--brand-sub);
  }
  @keyframes blink { 50% { opacity: 0; } }
  .badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 26px;
    font-family: var(--inter);
    font-weight: 500;
    font-size: 13px;
    color: #ffffff;
    background: #bcbcbc;
    padding: 0 14px;
    border-radius: 9999px;
  }

  /* ---------- hero scroll-zoom ---------- */
  body { overflow-x: hidden; }
  .hero-pin {
    position: relative;
  }
  .hero-sticky .top {
    will-change: transform, opacity;
  }
  @media (max-width: 768px) {
    .hero-pin { padding-top: 0 !important; height: auto !important; }
    .hero-sticky .top {
      position: static !important;
      top: auto !important;
      left: auto !important;
      width: auto !important;
      opacity: 1 !important;
      transform: none !important;
    }
    .hero-sticky .stage {
      top: auto !important;
      left: auto !important;
      width: auto !important;
      height: auto !important;
      border-radius: 16px !important;
    }
  }

  /* ---------- stage (fake desktop) ---------- */
  .stage {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    min-height: 690px;
    isolation: isolate;
  }
  .landscape { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 42%; }
  .landscape-dark {
    --reveal-r: 0%;
    opacity: 0;
    -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 calc(var(--reveal-r) - 16%), transparent var(--reveal-r));
    mask-image: radial-gradient(circle at 100% 0%, #000 calc(var(--reveal-r) - 16%), transparent var(--reveal-r));
  }

  .menubar {
    position: absolute;
    top: 2; left: 0; right: 0;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
font-weight: 590;
font-size: 13px;
line-height: 16px;
    color: rgba(255,255,255);
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    z-index: 5;
  }
  .menubar .left, .menubar .right { display: flex; align-items: center; gap: 15px; }
  .menubar .apple { font-size: 14px; }
  .menubar .app-name { font-weight: 860; }
  .menubar .menu-item { opacity: 0.85; }
  .menubar .menu-item.hide-narrow { }
  .menubar .icons { display: flex; align-items: center; gap: 9px; }
  .menubar .icons svg { width: 13px; height: 13px; display: block; }
  .menubar .clock {
    font-variant-numeric: tabular-nums;
    font-family: var(--sans);
  }
  .menu-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    color: inherit;
  }
  .menu-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
  }
  .menu-icon-btn svg { display: block; }

  .quicknote {
    position: absolute;
    top: 38px;
    right: 16px;
    width: 220px;
    background: var(--qn-bg, #ffffff);
    color: var(--qn-fg, #1b1d21);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    z-index: 20;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    --qn-bg: #ffffff;
    --qn-fg: #1b1d21;
    --qn-line: #eceef0;
    --qn-soft: #8a8f96;
  }
  .quicknote.dark {
    --qn-bg: #232427;
    --qn-fg: #ecedef;
    --qn-line: #37383c;
    --qn-soft: #91959c;
  }
  .quicknote.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .quicknote-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--qn-line);
  }
  .quicknote-close {
    background: transparent;
    border: 0;
    color: var(--qn-soft);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
  }
  .quicknote-body {
    display: block;
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 0;
    resize: none;
    background: transparent;
    color: var(--qn-fg);
    font-family: var(--sans);
    font-size: 12.5px;
    line-height: 1.5;
    caret-color: transparent;
  }
  .quicknote-body::placeholder { color: var(--qn-soft); }
  .quicknote-body:focus { outline: none; }

  .app-stack {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
  }
  .window {
    width: 380px;
    max-width: 100%;
    height: 540px;
    display: flex;
    flex-direction: column;
    background: var(--wbg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: filter 0.25s ease, opacity 0.25s ease;
    --wbg: #ffffff;
    --wfg: #1b1d21;
    --wfg-soft: #868b92;
    --wline: #eceef0;
    --wpill: #f0f1f3;
    --wpill-active: #ffffff;
  }
  .window.dimmed {
    filter: blur(3px);
    opacity: 0.55;
  }
  .window.dark {
    --wbg: #232427;
    --wfg: #ecedef;
    --wfg-soft: #91959c;
    --wline: #37383c;
    --wpill: #2c2d31;
    --wpill-active: #38393e;
  }
  .titlebar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    background: var(--wbg);
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.3s ease, padding 0.3s ease;
  }
  .titlebar-title {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--wfg-soft);
    pointer-events: none;
  }
  .titlebar.compact .titlebar-title { display: block; }
  .titlebar.compact #tabAddStandalone { display: flex; margin-left: auto; }
  .window.zen .titlebar {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
  }
  .traffic {
    display: flex;
    gap: 9px;
    flex-shrink: 0;
    padding-right: 4px;
  }
  .traffic span { width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .traffic span:nth-child(1) { background: #FF5C60; }
  .traffic span:nth-child(2) { background: #FAC800; }
  .traffic span:nth-child(3) { background: #35C759; }
  .traffic span svg { width: 10px; height: 10px; opacity: 0; }
  .traffic:hover span svg { opacity: 1; }

  .tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    transition: opacity 0.25s ease, max-width 0.3s ease, margin 0.3s ease;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs.hidden {
    opacity: 0;
    max-width: 0;
    margin: 0;
    pointer-events: none;
  }
  .tab-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--wfg-soft);
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    font-family: var(--sans);
    cursor: pointer;
    max-width: 128px;
    flex-shrink: 0;
  }
  .tab-pill.active {
    background: var(--wpill-active);
    color: var(--wfg);
    font-weight: 500;
    padding: 4px 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 0 0 1px color(display-p3 0.000 0.000 0.000 / 0.12);
  }
  .tab-pill:hover:not(.active) { background: var(--wpill); }
  .tab-pill .label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    outline: none;
  }
  .tab-pill .label[contenteditable="true"] {
    text-overflow: clip;
    background: var(--wpill);
    border-radius: 3px;
    padding: 0 2px;
  }
  .tab-pill .close {
    opacity: 0;
    width: 13px; height: 13px;
    flex-shrink: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    display: flex;
  }
  .tab-pill:hover .close, .tab-pill.active .close { opacity: 0.65; }
  .tab-pill .close:hover { opacity: 1 !important; background: rgba(140,140,150,0.25); }
  .tab-pill .close svg { width: 8px; height: 8px; }

  .tab-add {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--wfg-soft);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .tab-add:hover { background: var(--wpill); color: var(--wfg); }
  .tab-add svg { width: 14px; height: 14px; }
  #tabAddStandalone { display: none; }

  .icon-btn {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--wfg-soft);
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .icon-btn svg { width: 14px; height: 14px; }
  .icon-btn.shake { animation: shake 0.32s ease; }
  @keyframes shake {
    20%, 60% { transform: translateX(-2px); }
    40%, 80% { transform: translateX(2px); }
  }

  .editor-wrap {
    position: relative;
    background: var(--wbg);
    padding: 18px 22px 6px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .editor {
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.65;
    color: var(--wfg);
    min-height: 100%;
    outline: none;
    caret-color: transparent;
  }
  .fake-caret {
    position: absolute;
    width: 2px;
    background: #0A84FF;
    pointer-events: none;
    display: none;
    animation: caretBlink 1s steps(2, start) infinite;
  }
  .fake-caret.show { display: block; }
  @keyframes caretBlink { 50% { opacity: 0; } }
  .editor p, .editor div.p { margin: 0 0 13px; }
  .editor:empty::before,
  .editor .p:only-child:empty::before {
    content: "Start writing\2026";
    color: var(--wfg-soft);
  }

  .statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    background: var(--wbg);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--wfg-soft);
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.3s ease, padding 0.3s ease;
  }
  .window.zen .statusbar {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
  }

  /* ---------- glass dock ---------- */
  .dock {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 9999px;
    background: rgba(36, 38, 44, 0.33);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    z-index: 12;
  }
  .glass-seg {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 12px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-family: var(--inter);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .glass-seg svg { width: 16px; height: 16px; flex-shrink: 0; }
  .glass-seg:hover:not(.active) { background: rgba(255,255,255,0.08); color: #fff; }
  .glass-seg.active {
    background: rgba(255,255,255,0.22);
    color: #fff;
  }
  .glass-seg .moon { display: none; }
  .glass-seg.active .sun { display: none; }
  .glass-seg.active .moon { display: block; }
  .glass-seg .eye-off { display: none; }
  .glass-seg.active .eye { display: none; }
  .glass-seg.active .eye-off { display: block; }

  /* ---------- feature section ---------- */
  .about {
    margin-top: 100px;
  }
  @media (max-width: 680px) {
    .feature-grid { grid-template-columns: 1fr !important; }
    .menubar .menu-item.hide-narrow { display: none; }
    .menubar { font-size: 11px; padding: 0 12px; }
    .menubar .left, .menubar .right { gap: 10px; }
    .stage { aspect-ratio: 3 / 4.3; }
    .app-stack { width: 84%; gap: 12px; }
    .window { height: 260px; }
    .tab-pill { max-width: 74px; padding: 4px 6px; font-size: 11px; }
    .editor-wrap { padding: 14px 16px 4px; }
    .editor { font-size: 12.5px; }
    .statusbar { font-size: 9.5px; padding: 6px 12px; }
    .dock { gap: 4px; max-width: 100%; }
    .glass-seg { height: 34px; width: 34px; padding: 0; gap: 0; justify-content: center; }
    .glass-seg span { display: none; }
    .glass-seg svg { width: 16px; height: 16px; }
  }
  .about h2 {
    font-family: var(--inter);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 auto 32px;
    text-wrap: balance;
    letter-spacing: -0.01em;
    max-width: 46ch;
    text-align: center;
    color: var(--ink);
  }
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
  }
  @media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
  }
  .feature-card {
    background: var(--fc-bg);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
  }
  .feature-card .fc-icon {
    width: 20px;
    height: 20px;
    color: var(--fc-title);
    margin-bottom: 8px;
  }
  .feature-card .fc-icon svg { width: 100%; height: 100%; }
  .feature-card h3 {
    font-size: 15px;
    font-weight: 400;
    color: var(--fc-title);
    margin: 0 0 4px;
    letter-spacing: -0.005em;
  }
  .feature-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--fc-sub);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ---------- local-only section ---------- */
  .divider {
    max-width: 820px;
    width: 100%;
    height: 1px;
    margin: 60px auto;
    border: 0;
    background: #EEEEEE;
  }
  .local {
    max-width: 820px;
    margin: 100px auto;
    padding: 60px 24px;
    background: var(--fc-bg);
    border-radius: 16px;
    text-align: center;
  }
  /* Radar 3D Stage // Decodificador Táctico */
  .radar-stage {
    display: flex;
    justify-content: center;
    margin: 0 auto 32px;
    perspective: 1000px;
  }
  .radar-demo {
    position: relative;
    width: 330px;
    height: 195px;
    transform-style: preserve-3d;
    cursor: pointer;
    outline: none;
  }

  /* Signals container */
  .radar-signals {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }

  /* Individual Trading Cards */
  .radar-card {
    position: absolute;
    left: 35px;
    top: 35px;
    width: 260px;
    height: 105px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--radar-card-bg);
    border: 1px solid var(--radar-card-border);
    box-shadow: var(--radar-card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    font-family: var(--mono);
    transform-origin: center bottom;
    transition: all 0.45s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(25px) scale(0.85);
  }

  .rc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
  }
  .rc-source {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
  }
  :root[data-theme="dark"] .rc-source,
  .dark .rc-source {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.16);
  }
  .rc-ticker {
    color: #d97706;
    background: rgba(217, 119, 6, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
  }
  :root[data-theme="dark"] .rc-ticker,
  .dark .rc-ticker {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.16);
  }
  .rc-badge-safe {
    color: #059669;
    background: rgba(5, 150, 105, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
  }
  :root[data-theme="dark"] .rc-badge-safe,
  .dark .rc-badge-safe {
    color: #34d399;
    background: rgba(52, 211, 153, 0.16);
  }
  .rc-original {
    font-size: 10px;
    color: var(--radar-original);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rc-ca {
    font-size: 9px;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  :root[data-theme="dark"] .rc-ca,
  .dark .rc-ca {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
  }
  .rc-translated {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  :root[data-theme="dark"] .rc-translated,
  .dark .rc-translated {
    color: #10b981;
  }

  /* Rest position */
  .radar-card.c1 { z-index: 1; }
  .radar-card.c2 { z-index: 3; }
  .radar-card.c3 { z-index: 2; }

  /* Hover fanned-out state */
  .radar-demo:hover .radar-card,
  .radar-demo:focus-visible .radar-card,
  .radar-demo.hovered .radar-card {
    opacity: 1;
  }
  .radar-demo:hover .radar-card.c1,
  .radar-demo:focus-visible .radar-card.c1,
  .radar-demo.hovered .radar-card.c1 {
    transform: translate(-130px, -72px) rotate(-13deg) scale(0.92);
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  }
  :root[data-theme="dark"] .radar-demo:hover .radar-card.c1,
  :root[data-theme="dark"] .radar-demo:focus-visible .radar-card.c1,
  :root[data-theme="dark"] .radar-demo.hovered .radar-card.c1,
  .dark .radar-demo:hover .radar-card.c1,
  .dark .radar-demo:focus-visible .radar-card.c1,
  .dark .radar-demo.hovered .radar-card.c1 {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  }

  .radar-demo:hover .radar-card.c2,
  .radar-demo:focus-visible .radar-card.c2,
  .radar-demo.hovered .radar-card.c2 {
    transform: translate(0px, -100px) rotate(0deg) scale(1.02);
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18), 0 0 20px rgba(5, 150, 105, 0.15);
    z-index: 4;
  }
  :root[data-theme="dark"] .radar-demo:hover .radar-card.c2,
  :root[data-theme="dark"] .radar-demo:focus-visible .radar-card.c2,
  :root[data-theme="dark"] .radar-demo.hovered .radar-card.c2,
  .dark .radar-demo:hover .radar-card.c2,
  .dark .radar-demo:focus-visible .radar-card.c2,
  .dark .radar-demo.hovered .radar-card.c2 {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.6), 0 0 24px rgba(16, 185, 129, 0.25);
  }

  .radar-demo:hover .radar-card.c3,
  .radar-demo:focus-visible .radar-card.c3,
  .radar-demo.hovered .radar-card.c3 {
    transform: translate(130px, -72px) rotate(13deg) scale(0.92);
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  }
  :root[data-theme="dark"] .radar-demo:hover .radar-card.c3,
  :root[data-theme="dark"] .radar-demo:focus-visible .radar-card.c3,
  :root[data-theme="dark"] .radar-demo.hovered .radar-card.c3,
  .dark .radar-demo:hover .radar-card.c3,
  .dark .radar-demo:focus-visible .radar-card.c3,
  .dark .radar-demo.hovered .radar-card.c3 {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  }

  /* Chassis (Back Housing) */
  .radar-chassis {
    position: absolute;
    inset: 0;
    background: var(--radar-chassis-bg);
    border-radius: 18px;
    border: 1px solid var(--radar-chassis-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
  }
  .radar-chassis-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--radar-chassis-top);
    border-bottom: 1px solid var(--radar-chassis-top-line);
    font-family: var(--mono);
    font-size: 10px;
  }
  .radar-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
  }
  .radar-hud-tag {
    color: var(--radar-original);
    font-weight: 700;
    letter-spacing: 0.05em;
  }
  .radar-latency {
    color: #10b981;
    font-weight: 700;
  }
  .radar-grid-bg {
    flex: 1;
    background-image: 
      linear-gradient(var(--radar-grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--radar-grid-line) 1px, transparent 1px);
    background-size: 16px 16px;
  }

  /* Front Shutter (3D tilt on hover) */
  .radar-front-shutter {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 140px;
    z-index: 3;
    transform-origin: 50% 100%;
    transform: rotateX(0deg);
    transition: transform 0.45s cubic-bezier(0.2, 1, 0.3, 1);
  }
  .shutter-inner {
    width: 100%;
    height: 100%;
    background: var(--radar-shutter-bg);
    backdrop-filter: blur(16px);
    border-radius: 0 0 18px 18px;
    border-top: 1px solid var(--radar-shutter-border);
    border-left: 1px solid var(--radar-shutter-sub);
    border-right: 1px solid var(--radar-shutter-sub);
    border-bottom: 1px solid var(--radar-shutter-sub);
    box-shadow: var(--radar-shutter-shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }
  .radar-demo:hover .radar-front-shutter,
  .radar-demo:focus-visible .radar-front-shutter,
  .radar-demo.hovered .radar-front-shutter {
    transform: rotateX(-28deg) translateY(6px);
  }

  .shutter-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .shutter-logo {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }
  .shutter-title-group {
    text-align: left;
  }
  .shutter-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--radar-title);
    letter-spacing: 0.03em;
  }
  .shutter-sub {
    display: block;
    font-size: 9.5px;
    font-family: var(--mono);
    color: var(--radar-sub);
    margin-top: 2px;
    font-weight: 600;
  }

  .shutter-indicators {
    display: flex;
    gap: 8px;
  }
  .ind-pill {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--radar-pill-bg);
    color: var(--radar-pill-color);
    border: 1px solid var(--radar-shutter-sub);
  }
  .local-title {
    font-family: var(--inter);
    font-size: 21px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
  }
  .local-sub {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 40ch;
    margin: 0 auto;
  }

  /* ---------- dock promo ---------- */
  .promo {
    display: grid;
    grid-template-columns: 411px 1fr;
    gap: 56px;
    align-items: center;
    max-width: 820px;
    margin: 0 auto;
  }
  .promo-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
  }
  .promo-copy h3 {
    font-family: var(--inter);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: var(--ink);
    text-wrap: balance;
  }
  .promo-copy p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--brand-sub);
    max-width: 38ch;
    margin: 0 0 28px;
  }
  @media (max-width: 680px) {
    .promo { grid-template-columns: 1fr; gap: 28px; }
    .divider { margin: 40px auto; }
    .local { margin: 66px auto; }
  }

  /* ---------- footer ---------- */
  .foot {
    display: flex;
    justify-content: space-between;
    max-width: 820px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--ink-faint);
  }
  .foot a {
    color: var(--ink-faint);
    text-decoration: none;
  }
  .foot a:hover {
    color: var(--ink-soft);
    text-decoration: underline;
  }

/* ==========================================================================
   BABEL INTERACTIVE HUD - DUAL THEME (LIGHT // BLANCO  <->  DARK // NEGRO)
   ========================================================================== */

/* 1. Base Variables for Central Window in LIGHT MODE (Default Blanco) */
.window {
  --bb-bg: #FFFFFF;
  --bb-border: rgba(0, 0, 0, 0.09);
  --bb-shadow: 0 20px 48px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);

  --bb-title-bg: #F8FAFC;
  --bb-title-border: #E2E8F0;
  --bb-title-text: #0F172A;
  --bb-logo-bg: #FFFFFF;
  --bb-logo-border: #CBD5E1;
  --bb-badge-bg: #F1F5F9;
  --bb-badge-border: #CBD5E1;
  --bb-badge-text: #475569;

  --bb-pulse-bg: rgba(16, 185, 129, 0.1);
  --bb-pulse-border: rgba(16, 185, 129, 0.3);
  --bb-pulse-text: #047857;

  --bb-founder-bg: rgba(245, 158, 11, 0.12);
  --bb-founder-border: rgba(245, 158, 11, 0.35);
  --bb-founder-text: #B45309;

  --bb-tabs-bg: #F1F5F9;
  --bb-tabs-border: #E2E8F0;
  --bb-tab-btn-bg: #F8FAFC;
  --bb-tab-btn-text: #64748B;
  --bb-tab-btn-hover-bg: #FFFFFF;
  --bb-tab-btn-hover-text: #0F172A;
  --bb-tab-btn-active-bg: #FFFFFF;
  --bb-tab-btn-active-text: #0F172A;
  --bb-tab-btn-active-border: #10B981;

  --bb-hud-bg: #FFFFFF;
  --bb-scrollbar-thumb: #CBD5E1;

  --bb-section-label: #64748B;
  --bb-section-counter: #059669;

  --bb-row-bg: #F8FAFC;
  --bb-row-border: #E2E8F0;
  --bb-row-hover-bg: #F0F9FF;
  --bb-row-hover-border: #0284C7;
  --bb-row-name: #0F172A;
  --bb-row-desc: #64748B;

  --bb-switch-bg: #E2E8F0;
  --bb-switch-knob: #FFFFFF;
  --bb-switch-active-bg: #10B981;
  --bb-switch-active-knob: #FFFFFF;

  --bb-feed-bg: #F8FAFC;
  --bb-feed-border: #E2E8F0;
  --bb-feed-author: #0F172A;
  --bb-feed-source: #64748B;
  --bb-feed-time-bg: rgba(16, 185, 129, 0.1);
  --bb-feed-time-text: #047857;
  --bb-feed-body-bg: #FFFFFF;
  --bb-feed-body-border: #E2E8F0;
  --bb-feed-body-text: #1E293B;
  --bb-feed-alert: #0F172A;

  --bb-ticker-color: #B45309;
  --bb-ticker-bg: rgba(245, 158, 11, 0.12);
  --bb-ticker-border: rgba(245, 158, 11, 0.28);

  --bb-ca-color: #0284C7;
  --bb-ca-bg: rgba(2, 132, 199, 0.08);
  --bb-ca-border: rgba(2, 132, 199, 0.25);
  --bb-ca-hover-bg: rgba(2, 132, 199, 0.16);

  --bb-btn-trans-bg: #10B981;
  --bb-btn-trans-text: #FFFFFF;
  --bb-btn-trans-active-bg: #E0F2FE;
  --bb-btn-trans-active-text: #0284C7;
  --bb-btn-trans-active-border: #38BDF8;

  --bb-dict-search-bg: #F8FAFC;
  --bb-dict-search-border: #CBD5E1;
  --bb-dict-search-text: #0F172A;

  --bb-dict-chip-bg: #F1F5F9;
  --bb-dict-chip-border: #E2E8F0;
  --bb-dict-chip-text: #475569;
  --bb-dict-chip-active-color: #0284C7;
  --bb-dict-chip-active-border: #0284C7;
  --bb-dict-chip-active-bg: rgba(2, 132, 199, 0.08);

  --bb-dict-card-bg: #F8FAFC;
  --bb-dict-card-border: #E2E8F0;
  --bb-dict-card-title: #0284C7;
  --bb-dict-card-def: #1E293B;
  --bb-dict-card-ctx: #64748B;

  --bb-status-bg: #F8FAFC;
  --bb-status-border: #E2E8F0;
  --bb-status-engine: #059669;
  --bb-status-count: #0F172A;
  --bb-status-shield: #0284C7;
  --bb-status-founder: #B45309;
  --bb-status-latency: #64748B;

  background: var(--bb-bg) !important;
  border: 1px solid var(--bb-border) !important;
  box-shadow: var(--bb-shadow) !important;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* 2. Theme Variables for Central Window in DARK MODE (Negro) */
.window.dark {
  --bb-bg: #0C0D0E;
  --bb-border: rgba(255, 255, 255, 0.12);
  --bb-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 40px rgba(16, 185, 129, 0.04);

  --bb-title-bg: #141618;
  --bb-title-border: #2E343A;
  --bb-title-text: #FFFFFF;
  --bb-logo-bg: #141618;
  --bb-logo-border: #2E343A;
  --bb-badge-bg: #1E2226;
  --bb-badge-border: #2E343A;
  --bb-badge-text: #EAEAEA;

  --bb-pulse-bg: rgba(16, 185, 129, 0.15);
  --bb-pulse-border: rgba(16, 185, 129, 0.3);
  --bb-pulse-text: #10B981;

  --bb-founder-bg: rgba(245, 158, 11, 0.15);
  --bb-founder-border: rgba(245, 158, 11, 0.35);
  --bb-founder-text: #F59E0B;

  --bb-tabs-bg: #0C0D0E;
  --bb-tabs-border: #2E343A;
  --bb-tab-btn-bg: #0C0D0E;
  --bb-tab-btn-text: #94A3B8;
  --bb-tab-btn-hover-bg: #141618;
  --bb-tab-btn-hover-text: #FFFFFF;
  --bb-tab-btn-active-bg: #141618;
  --bb-tab-btn-active-text: #FFFFFF;
  --bb-tab-btn-active-border: #10B981;

  --bb-hud-bg: #0C0D0E;
  --bb-scrollbar-thumb: #2E343A;

  --bb-section-label: #64748B;
  --bb-section-counter: #10B981;

  --bb-row-bg: #141618;
  --bb-row-border: #23272B;
  --bb-row-hover-bg: #181B1E;
  --bb-row-hover-border: #38BDF8;
  --bb-row-name: #EAEAEA;
  --bb-row-desc: #64748B;

  --bb-switch-bg: #2E343A;
  --bb-switch-knob: #64748B;
  --bb-switch-active-bg: #10B981;
  --bb-switch-active-knob: #0C0D0E;

  --bb-feed-bg: #141618;
  --bb-feed-border: #2E343A;
  --bb-feed-author: #EAEAEA;
  --bb-feed-source: #94A3B8;
  --bb-feed-time-bg: rgba(16, 185, 129, 0.15);
  --bb-feed-time-text: #10B981;
  --bb-feed-body-bg: #0C0D0E;
  --bb-feed-body-border: #23272B;
  --bb-feed-body-text: #D1D5DB;
  --bb-feed-alert: #FFFFFF;

  --bb-ticker-color: #F59E0B;
  --bb-ticker-bg: rgba(245, 158, 11, 0.15);
  --bb-ticker-border: rgba(245, 158, 11, 0.3);

  --bb-ca-color: #38BDF8;
  --bb-ca-bg: rgba(56, 189, 248, 0.15);
  --bb-ca-border: rgba(56, 189, 248, 0.3);
  --bb-ca-hover-bg: rgba(56, 189, 248, 0.25);

  --bb-btn-trans-bg: #10B981;
  --bb-btn-trans-text: #0C0D0E;
  --bb-btn-trans-active-bg: rgba(56, 189, 248, 0.2);
  --bb-btn-trans-active-text: #38BDF8;
  --bb-btn-trans-active-border: #38BDF8;

  --bb-dict-search-bg: #141618;
  --bb-dict-search-border: #2E343A;
  --bb-dict-search-text: #EAEAEA;

  --bb-dict-chip-bg: #141618;
  --bb-dict-chip-border: #2E343A;
  --bb-dict-chip-text: #94A3B8;
  --bb-dict-chip-active-color: #38BDF8;
  --bb-dict-chip-active-border: #38BDF8;
  --bb-dict-chip-active-bg: rgba(56, 189, 248, 0.1);

  --bb-dict-card-bg: #141618;
  --bb-dict-card-border: #2E343A;
  --bb-dict-card-title: #38BDF8;
  --bb-dict-card-def: #D1D5DB;
  --bb-dict-card-ctx: #64748B;

  --bb-status-bg: #141618;
  --bb-status-border: #2E343A;
  --bb-status-engine: #10B981;
  --bb-status-count: #EAEAEA;
  --bb-status-shield: #38BDF8;
  --bb-status-founder: #F59E0B;
  --bb-status-latency: #94A3B8;
}

/* 3. Component Styles with Adaptive Transitions */
.babel-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--bb-title-bg);
  border-bottom: 1px solid var(--bb-title-border);
  flex-shrink: 0;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.babel-logo-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--bb-logo-bg);
  border: 1px solid var(--bb-logo-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.babel-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.babel-logo-text {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--bb-title-text);
  transition: color 0.35s ease;
}

.babel-badge-sys {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  background: var(--bb-badge-bg);
  color: var(--bb-badge-text);
  border: 1px solid var(--bb-badge-border);
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: all 0.35s ease;
}

.babel-pulse-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--bb-pulse-text);
  font-weight: 800;
  background: var(--bb-pulse-bg);
  border: 1px solid var(--bb-pulse-border);
  padding: 2px 7px;
  border-radius: 9999px;
  transition: all 0.35s ease;
}

.babel-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
}

/* Router Status Strip */
.babel-router-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #090A0F;
  border-bottom: 1px solid #1E222D;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  overflow-x: auto;
}
.babel-router-label {
  color: #94A3B8;
  text-transform: uppercase;
  flex-shrink: 0;
  font-size: 8.5px;
}
.babel-router-chips {
  display: flex;
  align-items: center;
  gap: 4px;
}
.babel-router-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  background: #141618;
  border: 1px solid #2E343A;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0;
  outline: none;
}
.babel-router-chip.active {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}
.babel-router-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748B;
}
.babel-router-chip.active .babel-router-chip-dot {
  background: #10B981;
  box-shadow: 0 0 5px #10B981;
}

/* Tabs Bar */
.babel-tabs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #1E222D;
  border-bottom: 2px solid #1E222D;
  gap: 1px;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.babel-tab-btn {
  background: #090A0F;
  border: 0;
  color: #94A3B8;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
  padding: 6px 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: color 0.15s ease, background 0.15s ease;
  outline: none;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.babel-tab-btn:hover {
  color: #EAEAEA;
  background: #141618;
}
.babel-tab-btn.active {
  background: #141618;
  color: #EAEAEA;
  border-bottom: 2px solid #E61919;
}
.babel-tab-btn[data-tab="diccionario"].active {
  color: #38BDF8;
  border-bottom-color: #38BDF8;
}
.babel-tab-btn[data-tab="lab"].active {
  color: #F59E0B;
  border-bottom-color: #F59E0B;
}
.babel-tab-dot-lab {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #F59E0B;
  display: inline-block;
  flex-shrink: 0;
}

.babel-hud-body {
  flex: 1;
  padding: 10px 12px;
  overflow-y: auto;
  min-height: 0;
  background: #0B0D12;
  transition: background 0.35s ease;
}
.babel-hud-body::-webkit-scrollbar {
  width: 4px;
}
.babel-hud-body::-webkit-scrollbar-thumb {
  background: #1E222D;
  border-radius: 2px;
}

.babel-view {
  display: none;
  animation: fadeInView 0.18s ease-out;
}
.babel-view.active {
  display: block;
}
@keyframes fadeInView {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

.babel-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.babel-section-counter {
  color: #10B981;
}

/* Brutalist Switch */
.babel-brutalist-switch {
  width: 38px;
  height: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 0 !important;
  border: 1.5px solid #2E343A;
  background: #141618;
  position: relative;
  transition: background-color 100ms steps(2, jump-none), border-color 100ms steps(2, jump-none);
  outline: none;
  flex-shrink: 0;
}
.babel-brutalist-switch.active {
  background: #1E2226;
  border-color: #38BDF8;
}
.babel-switch-thumb {
  width: 16px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border-radius: 0 !important;
  background: #4B5563;
  color: #0C0D0E;
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1), background-color 100ms ease;
  transform: translateX(0);
}
.babel-brutalist-switch.active .babel-switch-thumb {
  transform: translateX(17px);
  background: #38BDF8;
  color: #0C0D0E;
}

/* Master Control Unit */
.babel-control-unit {
  border: 1px solid #1E222D;
  background: #141618;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.babel-control-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  color: #EAEAEA;
  letter-spacing: 0.02em;
}
.babel-control-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  color: #94A3B8;
  margin: 2px 0 0 0;
}

/* Language Selector */
.babel-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #1E222D;
  border: 1px solid #1E222D;
  margin-bottom: 8px;
}
.babel-lang-btn {
  background: #090A0F;
  color: #94A3B8;
  border: 0;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  transition: none;
  outline: none;
}
.babel-lang-btn:hover {
  color: #EAEAEA;
}
.babel-lang-btn.active {
  background: #EAEAEA;
  color: #0C0D0E;
}

/* Terminal Group (Divider-based layout from ProtocolsTabView) */
.babel-terminal-group {
  border: 1px solid #1E222D;
  background: #141618;
  display: flex;
  flex-direction: column;
}
.babel-terminal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  gap: 10px;
  border-bottom: 1px solid #1E222D;
  transition: background 0.1s ease;
}
.babel-terminal-item:last-child {
  border-bottom: none;
}
.babel-terminal-item:hover {
  background: #1C1F22;
}
.babel-terminal-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}
.babel-term-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.dot-axiom { background: #10B981; box-shadow: 0 0 6px #10B981; }
.dot-padre { background: #8B5CF6; box-shadow: 0 0 6px #8B5CF6; }
.dot-gmgn { background: #38BDF8; box-shadow: 0 0 6px #38BDF8; }
.dot-fomo { background: #F59E0B; box-shadow: 0 0 6px #F59E0B; }
.dot-twitter { background: #EAEAEA; box-shadow: 0 0 6px #EAEAEA; }
.babel-term-dot.off {
  background: #64748B !important;
  box-shadow: none !important;
}

.babel-term-meta {
  min-width: 0;
  flex: 1;
}
.babel-term-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.babel-term-name {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #EAEAEA;
  letter-spacing: 0.02em;
}
.babel-term-badge {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
}
.badge-axiom { background: rgba(16, 185, 129, 0.18); color: #10B981; }
.badge-padre { background: rgba(139, 92, 246, 0.18); color: #8B5CF6; }
.badge-gmgn { background: rgba(56, 189, 248, 0.18); color: #38BDF8; }
.badge-fomo { background: rgba(245, 158, 11, 0.18); color: #F59E0B; }
.badge-twitter { background: rgba(234, 234, 234, 0.18); color: #EAEAEA; }
.babel-term-badge.paused {
  background: rgba(100, 116, 139, 0.2);
  color: #64748B;
}

.babel-term-desc {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.35;
  color: #94A3B8;
  margin: 0;
}
.babel-terminal-meta-only {
  min-width: 0;
  flex: 1;
}
.babel-term-title-plain {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #EAEAEA;
  margin: 0 0 2px 0;
  letter-spacing: 0.02em;
}
.babel-tag-local {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.babel-tag-zero {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}
.babel-tag-zero.off {
  background: rgba(100, 116, 139, 0.2);
  color: #64748B;
}
.babel-tag-rsi {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}
.babel-tag-rsi.off {
  background: rgba(100, 116, 139, 0.2);
  color: #64748B;
}
.babel-tag-incubator {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  background: rgba(192, 132, 252, 0.2);
  color: #C084FC;
}
.babel-tag-incubator.off {
  background: rgba(100, 116, 139, 0.2);
  color: #64748B;
}

.babel-feed-card {
  background: var(--bb-feed-bg);
  border: 1px solid var(--bb-feed-border);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.35s ease;
}
.babel-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.babel-feed-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.babel-feed-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bb-badge-bg);
  border: 1px solid var(--bb-badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.babel-author-name {
  color: var(--bb-feed-author);
  font-weight: 700;
  transition: color 0.35s ease;
}
.babel-author-source {
  color: var(--bb-feed-source);
  margin-left: 4px;
  transition: color 0.35s ease;
}
.babel-feed-time {
  font-size: 9px;
  color: var(--bb-feed-time-text);
  background: var(--bb-feed-time-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  transition: all 0.35s ease;
}
.babel-feed-body {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--bb-feed-body-text);
  background: var(--bb-feed-body-bg);
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid var(--bb-feed-body-border);
  transition: opacity 0.15s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.babel-feed-alert {
  color: var(--bb-feed-alert);
  transition: color 0.35s ease;
}
.babel-feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bb-feed-border);
  padding-top: 10px;
  margin-top: 8px;
  transition: border-color 0.35s ease;
}

.babel-highlight-ticker {
  color: var(--bb-ticker-color);
  font-weight: 800;
  background: var(--bb-ticker-bg);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid var(--bb-ticker-border);
  transition: all 0.35s ease;
}
.babel-highlight-contract {
  color: var(--bb-ca-color);
  font-weight: 800;
  background: var(--bb-ca-bg);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid var(--bb-ca-border);
  cursor: pointer;
  transition: all 0.2s ease;
}
.babel-highlight-contract:hover {
  background: var(--bb-ca-hover-bg);
}
.babel-highlight-slang {
  color: var(--bb-ca-color);
  font-weight: 700;
}
.babel-empty-hint {
  color: var(--bb-section-label);
  font-style: italic;
}

.babel-action-btn {
  background: var(--bb-btn-trans-bg);
  color: var(--bb-btn-trans-text);
  border: 0;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.babel-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.babel-action-btn.translated {
  background: var(--bb-btn-trans-active-bg);
  color: var(--bb-btn-trans-active-text);
  border: 1px solid var(--bb-btn-trans-active-border);
}

.babel-copy-feedback {
  font-size: 10px;
  color: #10B981;
  font-weight: 700;
  font-family: var(--mono);
}

.babel-guarantee-note {
  margin-top: 10px;
  font-size: 10px;
  color: var(--bb-row-desc);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  transition: color 0.35s ease;
}
.babel-guarantee-accent {
  color: #10B981;
  font-weight: 700;
}

.babel-dict-search-box {
  width: 100%;
  background: var(--bb-dict-search-bg);
  border: 1px solid var(--bb-dict-search-border);
  color: var(--bb-dict-search-text);
  padding: 6px 10px;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.babel-dict-search-box:focus {
  border-color: #38BDF8;
}

/* Dictionary Category Filters */
.babel-dict-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #1E222D;
  border: 1px solid #1E222D;
  margin-bottom: 6px;
}
.babel-dict-filter-btn {
  background: #090A0F;
  color: #94A3B8;
  border: 0;
  padding: 5px 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  transition: none;
  outline: none;
}
.babel-dict-filter-btn:hover {
  color: #EAEAEA;
}
.babel-dict-filter-btn.active {
  background: #EAEAEA;
  color: #0C0D0E;
}
.babel-dict-filter-btn[data-filter="manual"].active {
  background: #38BDF8;
  color: #0C0D0E;
}
.babel-dict-filter-btn[data-filter="system"].active {
  background: #4ADE80;
  color: #0C0D0E;
}

.babel-dict-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.babel-dict-chip {
  background: var(--bb-dict-chip-bg);
  border: 1px solid var(--bb-dict-chip-border);
  color: var(--bb-dict-chip-text);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.12s ease;
  outline: none;
}
.babel-dict-chip:hover, .babel-dict-chip.active {
  color: #38BDF8;
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
}

.babel-dict-card {
  background: var(--bb-dict-card-bg);
  border: 1px solid var(--bb-dict-card-border);
  border-left: 3px solid #38BDF8;
  padding: 8px 10px;
  transition: all 0.35s ease;
  margin-bottom: 8px;
}
.babel-dict-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.babel-dict-badge {
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 800;
  padding: 1px 4px;
  background: rgba(74, 222, 128, 0.18);
  color: #4ADE80;
}
.babel-dict-badge.manual {
  background: rgba(56, 189, 248, 0.18);
  color: #38BDF8;
}
.babel-dict-title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 900;
  color: #38BDF8;
  margin-bottom: 2px;
}
.babel-dict-def {
  font-size: 9.5px;
  line-height: 1.4;
  color: #D1D5DB;
  margin-bottom: 4px;
  transition: color 0.35s ease;
}
.babel-dict-context {
  font-size: 9px;
  color: #94A3B8;
  font-family: var(--mono);
  transition: color 0.35s ease;
}

/* Scrollable Live Slang Catalog */
.babel-dict-catalog-list {
  max-height: 110px;
  overflow-y: auto;
  border: 1px solid #1E222D;
  background: #141618;
}
.babel-dict-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-bottom: 1px solid #1E222D;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  transition: background 0.1s ease;
}
.babel-dict-item:last-child {
  border-bottom: none;
}
.babel-dict-item:hover {
  background: #1C1F22;
}
.babel-dict-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.babel-dict-term {
  font-weight: 800;
  color: #38BDF8;
}
.babel-dict-trans {
  color: #94A3B8;
  font-size: 8.5px;
}
.babel-dict-tag {
  font-size: 7.5px;
  font-weight: 800;
  color: #64748B;
}

/* Babel Labs Banner & Accordion */
.babel-lab-banner {
  border: 1px solid #1E222D;
  background: #141618;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.babel-lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px dashed rgba(46, 52, 58, 0.6);
}
.babel-lab-title-group {
  display: flex;
  align-items: center;
  gap: 5px;
}
.babel-lab-flask {
  font-size: 12px;
}
.babel-lab-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  color: #EAEAEA;
}
.babel-lab-status-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.babel-lab-status-badge {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 4px;
}
.babel-lab-status-badge.off {
  border-color: rgba(100, 116, 139, 0.3);
  background: rgba(100, 116, 139, 0.15);
  color: #64748B;
}
.babel-lab-status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10B981;
}
.babel-lab-status-badge.off .babel-lab-status-dot {
  background: #64748B;
}
.babel-lab-desc {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.35;
  color: #94A3B8;
  margin: 0;
}
.babel-lab-accent {
  color: #F59E0B;
  font-weight: 800;
}

/* Accordion Button & Panel */
.babel-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  background: #1C1F22;
  border: 1px dashed #2E343A;
  color: #10B981;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 3px;
  outline: none;
}
.babel-accordion-btn-left {
  display: flex;
  align-items: center;
  gap: 4px;
}
.babel-accordion-arrow {
  font-size: 7px;
  transition: transform 0.2s ease;
}
.babel-accordion-btn.expanded .babel-accordion-arrow {
  transform: rotate(180deg);
}
.babel-accordion-count {
  opacity: 0.7;
  color: #94A3B8;
  font-size: 8px;
}
.babel-accordion-content {
  display: none;
  padding: 6px 8px;
  background: #0E1012;
  border: 1px solid #2E343A;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  color: #94A3B8;
  margin-top: 3px;
}
.babel-accordion-content.open {
  display: block;
}
.babel-accordion-header-text {
  font-weight: 800;
  text-transform: uppercase;
  color: #10B981;
  margin-bottom: 3px;
  font-size: 8px;
}
.babel-accordion-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.babel-accordion-list strong {
  color: #EAEAEA;
}

/* Technical Statusbar Footer */
.babel-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #090A0F;
  border-top: 1px solid #1E222D;
  font-size: 8px;
  transition: all 0.35s ease;
  white-space: nowrap;
  gap: 4px;
  flex-shrink: 0;
}
.babel-stats-row {
  font-weight: 700;
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.babel-stat-engine {
  color: #10B981;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.babel-stat-count {
  color: #EAEAEA;
}
.babel-stat-shield {
  color: #38BDF8;
}
.babel-stat-latency {
  font-size: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #94A3B8;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}

/* ==========================================================================
   BABEL RECUADRO DUAL THEME (EXCLUSIVAMENTE PARA #window - SIN TOCAR LA WEB)
   ========================================================================== */

/* --- 1. RECUADRO EN MODO CLARO (DE DÍA / .window:not(.dark)) --- */
.window:not(.dark) {
  background: #F4F4F0 !important;
  border: 1px solid #0A0A0A !important;
  color: #0A0A0A !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.window:not(.dark) .babel-titlebar {
  background: #EAE8E3 !important;
  border-bottom: 1px solid #0A0A0A !important;
}
.window:not(.dark) .babel-logo-box {
  background: #FFFFFF !important;
  border: 1px solid #0A0A0A !important;
}
.window:not(.dark) .babel-logo-text {
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-badge-sys {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  border: 1px solid #0A0A0A !important;
}
.window:not(.dark) .babel-pulse-pill {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #047857 !important;
}

.window:not(.dark) .babel-router-strip {
  background: #F4F4F0 !important;
  border-bottom: 1px solid #0A0A0A !important;
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-router-label {
  color: #64748B !important;
}
.window:not(.dark) .babel-router-chip {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #64748B !important;
}
.window:not(.dark) .babel-router-chip.active {
  background: #ECFDF5 !important;
  border-color: #047857 !important;
  color: #047857 !important;
}
.window:not(.dark) .babel-router-chip.active .babel-router-chip-dot {
  background: #047857 !important;
  box-shadow: 0 0 4px #047857 !important;
}

.window:not(.dark) .babel-tabs-bar {
  background: #0A0A0A !important;
  border-bottom: 2px solid #0A0A0A !important;
}
.window:not(.dark) .babel-tab-btn {
  background: #EAE8E3 !important;
  color: #475569 !important;
}
.window:not(.dark) .babel-tab-btn:hover {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-tab-btn.active {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
  border-bottom: 2px solid #E61919 !important;
}
.window:not(.dark) .babel-tab-btn[data-tab="diccionario"].active {
  color: #0A0A0A !important;
  border-bottom-color: #0A0A0A !important;
}
.window:not(.dark) .babel-tab-btn[data-tab="lab"].active {
  color: #0A0A0A !important;
  border-bottom-color: #F59E0B !important;
}

.window:not(.dark) .babel-hud-body {
  background: #F4F4F0 !important;
}
.window:not(.dark) .babel-hud-body::-webkit-scrollbar-thumb {
  background: #CBD5E1 !important;
}

.window:not(.dark) .babel-control-unit,
.window:not(.dark) .babel-terminal-group,
.window:not(.dark) .babel-feed-card,
.window:not(.dark) .babel-dict-card,
.window:not(.dark) .babel-lab-banner {
  background: #FFFFFF !important;
  border: 1px solid #0A0A0A !important;
}

.window:not(.dark) .babel-control-title,
.window:not(.dark) .babel-term-name,
.window:not(.dark) .babel-term-title-plain,
.window:not(.dark) .babel-lab-title {
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-control-state {
  color: #64748B !important;
}
.window:not(.dark) .babel-section-counter {
  color: #047857 !important;
}

.window:not(.dark) .babel-terminal-item {
  border-bottom: 1px solid #E2E8F0 !important;
}
.window:not(.dark) .babel-terminal-item:hover {
  background: #F8FAFC !important;
}
.window:not(.dark) .babel-term-desc {
  color: #64748B !important;
}
.window:not(.dark) .babel-term-badge {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}

.window:not(.dark) .babel-lang-grid {
  background: #0A0A0A !important;
  border: 1px solid #0A0A0A !important;
}
.window:not(.dark) .babel-lang-btn {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-lang-btn.active {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
}

.window:not(.dark) .babel-brutalist-switch {
  border: 1px solid #CBD5E1 !important;
  background: #EAE8E3 !important;
}
.window:not(.dark) .babel-brutalist-switch.active {
  border: 1px solid #0A0A0A !important;
  background: #0A0A0A !important;
}
.window:not(.dark) .babel-switch-thumb {
  background: #CBD5E1 !important;
  color: #64748B !important;
}
.window:not(.dark) .babel-brutalist-switch.active .babel-switch-thumb {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
}

.window:not(.dark) .babel-feed-card {
  background: #FFFFFF !important;
  border: 1px solid #0A0A0A !important;
}
.window:not(.dark) .babel-feed-author {
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-feed-badge {
  background: #ECFDF5 !important;
  border: 1px solid #047857 !important;
  color: #047857 !important;
}
.window:not(.dark) .babel-feed-body {
  background: #F4F4F0 !important;
  border: 1px solid #CBD5E1 !important;
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-feed-guarantee {
  color: #475569 !important;
}
.window:not(.dark) .babel-btn-trans {
  background: #047857 !important;
  color: #FFFFFF !important;
  border: 1px solid #047857 !important;
}

.window:not(.dark) .babel-dict-search-box {
  background: #FFFFFF !important;
  border: 1px solid #0A0A0A !important;
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-dict-filter-grid {
  background: #0A0A0A !important;
  border: 1px solid #0A0A0A !important;
}
.window:not(.dark) .babel-dict-filter-btn {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-dict-filter-btn.active {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
}
.window:not(.dark) .babel-dict-catalog-list {
  background: #FFFFFF !important;
  border: 1px solid #0A0A0A !important;
}
.window:not(.dark) .babel-dict-item {
  border-bottom: 1px solid #E2E8F0 !important;
}
.window:not(.dark) .babel-dict-item:hover {
  background: #F8FAFC !important;
}
.window:not(.dark) .babel-dict-def {
  color: #1E293B !important;
}

.window:not(.dark) .babel-statusbar {
  background: #EAE8E3 !important;
  border-top: 1px solid #0A0A0A !important;
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-stat-engine {
  color: #047857 !important;
}
.window:not(.dark) .babel-stat-count {
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-stat-shield {
  color: #0284C7 !important;
}
.window:not(.dark) .babel-stat-latency {
  color: #64748B !important;
}

/* --- 2. RECUADRO EN MODO OSCURO (DE NOCHE / .window.dark) --- */
.window.dark {
  background: #090A0F !important;
  border: 1px solid #1E222D !important;
  color: #EAEAEA !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 40px rgba(16, 185, 129, 0.04) !important;
}

.window.dark .babel-titlebar {
  background: #141618 !important;
  border-bottom: 1px solid #1E222D !important;
}
.window.dark .babel-logo-box {
  background: #141618 !important;
  border: 1px solid #2E343A !important;
}
.window.dark .babel-logo-text {
  color: #FFFFFF !important;
}
.window.dark .babel-badge-sys {
  background: #1E2226 !important;
  color: #EAEAEA !important;
  border: 1px solid #2E343A !important;
}
.window.dark .babel-pulse-pill {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #10B981 !important;
}

.window.dark .babel-router-strip {
  background: #090A0F !important;
  border-bottom: 1px solid #1E222D !important;
  color: #94A3B8 !important;
}
.window.dark .babel-router-label {
  color: #94A3B8 !important;
}
.window.dark .babel-router-chip {
  background: #141618 !important;
  border: 1px solid #2E343A !important;
  color: #64748B !important;
}
.window.dark .babel-router-chip.active {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  color: #10B981 !important;
}
.window.dark .babel-router-chip.active .babel-router-chip-dot {
  background: #10B981 !important;
  box-shadow: 0 0 5px #10B981 !important;
}

.window.dark .babel-tabs-bar {
  background: #1E222D !important;
  border-bottom: 2px solid #1E222D !important;
}
.window.dark .babel-tab-btn {
  background: #090A0F !important;
  color: #94A3B8 !important;
}
.window.dark .babel-tab-btn:hover {
  color: #EAEAEA !important;
  background: #141618 !important;
}
.window.dark .babel-tab-btn.active {
  background: #141618 !important;
  color: #EAEAEA !important;
  border-bottom: 2px solid #E61919 !important;
}
.window.dark .babel-tab-btn[data-tab="diccionario"].active {
  color: #38BDF8 !important;
  border-bottom-color: #38BDF8 !important;
}
.window.dark .babel-tab-btn[data-tab="lab"].active {
  color: #F59E0B !important;
  border-bottom-color: #F59E0B !important;
}

.window.dark .babel-hud-body {
  background: #0B0D12 !important;
}
.window.dark .babel-hud-body::-webkit-scrollbar-thumb {
  background: #1E222D !important;
}

.window.dark .babel-control-unit,
.window.dark .babel-terminal-group,
.window.dark .babel-feed-card,
.window.dark .babel-dict-card,
.window.dark .babel-lab-banner {
  background: #090A0F !important;
  border: 1px solid #1E222D !important;
}

.window.dark .babel-control-title,
.window.dark .babel-term-name,
.window.dark .babel-term-title-plain,
.window.dark .babel-lab-title {
  color: #EAEAEA !important;
}
.window.dark .babel-control-state {
  color: #64748B !important;
}
.window.dark .babel-section-counter {
  color: #10B981 !important;
}

.window.dark .babel-terminal-item {
  border-bottom: 1px solid #1E222D !important;
}
.window.dark .babel-terminal-item:hover {
  background: #141618 !important;
}
.window.dark .babel-term-desc {
  color: #94A3B8 !important;
}
.window.dark .babel-term-badge {
  background: #141618 !important;
  border: 1px solid #2E343A !important;
  color: #64748B !important;
}

.window.dark .babel-lang-grid {
  background: #141618 !important;
  border: 1px solid #2E343A !important;
}
.window.dark .babel-lang-btn {
  background: #0C0D0E !important;
  color: #94A3B8 !important;
}
.window.dark .babel-lang-btn.active {
  background: #1E222D !important;
  color: #FFFFFF !important;
}

.window.dark .babel-brutalist-switch {
  border: 1px solid #2E343A !important;
  background: #141618 !important;
}
.window.dark .babel-brutalist-switch.active {
  border: 1px solid #38BDF8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
}
.window.dark .babel-switch-thumb {
  background: #2E343A !important;
  color: #64748B !important;
}
.window.dark .babel-brutalist-switch.active .babel-switch-thumb {
  background: #38BDF8 !important;
  color: #0C0D0E !important;
}

.window.dark .babel-feed-card {
  background: #090A0F !important;
  border: 1px solid #1E222D !important;
}
.window.dark .babel-feed-author {
  color: #EAEAEA !important;
}
.window.dark .babel-feed-badge {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #10B981 !important;
}
.window.dark .babel-feed-body {
  background: #0C0D0E !important;
  border: 1px solid #2E343A !important;
  color: #CBD5E1 !important;
}
.window.dark .babel-feed-guarantee {
  color: #94A3B8 !important;
}
.window.dark .babel-btn-trans {
  background: #10B981 !important;
  color: #0C0D0E !important;
  border: 1px solid #10B981 !important;
}

.window.dark .babel-dict-search-box {
  background: #0C0D0E !important;
  border: 1px solid #2E343A !important;
  color: #EAEAEA !important;
}
.window.dark .babel-dict-filter-grid {
  background: #141618 !important;
  border: 1px solid #2E343A !important;
}
.window.dark .babel-dict-filter-btn {
  background: #0C0D0E !important;
  color: #94A3B8 !important;
}
.window.dark .babel-dict-filter-btn.active {
  background: #1E222D !important;
  color: #FFFFFF !important;
}
.window.dark .babel-dict-catalog-list {
  background: #090A0F !important;
  border: 1px solid #1E222D !important;
}
.window.dark .babel-dict-item {
  border-bottom: 1px solid #1E222D !important;
}
.window.dark .babel-dict-item:hover {
  background: #141618 !important;
}
.window.dark .babel-dict-def {
  color: #94A3B8 !important;
}

.window.dark .babel-statusbar {
  background: #090A0F !important;
  border-top: 1px solid #1E222D !important;
  color: #EAEAEA !important;
}
.window.dark .babel-stat-engine {
  color: #10B981 !important;
}
.window.dark .babel-stat-count {
  color: #EAEAEA !important;
}
.window.dark .babel-stat-shield {
  color: #38BDF8 !important;
}
.window.dark .babel-stat-latency {
  color: #94A3B8 !important;
}


/* ==========================================================================
   MENUBAR STYLING & PLANES VIEW STYLING
   ========================================================================== */
.menubar .babel-status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 2px;
}
.menubar .babel-status-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981, 0 0 2px #34D399;
  display: inline-block;
  animation: babelPulseDot 2s infinite ease-in-out;
}
@keyframes babelPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}

.menubar .menu-item {
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
  user-select: none;
}
.menubar .menu-item:hover {
  opacity: 1;
  color: #FFFFFF;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.menubar .menu-item.active {
  opacity: 1;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

/* Plan Cards in Central Window */
.babel-plan-card {
  padding: 8px 10px;
  border: 1px solid #1E222D;
  background: #090A0F;
  border-radius: 0;
  transition: all 0.2s ease;
}
.babel-plan-name {
  font-weight: 800;
  font-size: 10px;
  font-family: var(--mono);
  color: #EAEAEA;
}
.babel-plan-name-pro {
  font-weight: 800;
  font-size: 10px;
  font-family: var(--mono);
  color: #38BDF8;
}
.babel-plan-name-founder {
  font-weight: 800;
  font-size: 10px;
  font-family: var(--mono);
  color: #F59E0B;
}
.babel-plan-desc {
  font-size: 8.5px;
  color: #94A3B8;
  font-family: var(--mono);
  line-height: 1.4;
  margin-top: 3px;
}
.babel-plan-badge-starter {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
  padding: 1px 5px;
}
.babel-plan-badge-pro {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  padding: 1px 5px;
}
.babel-plan-badge-founder {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
  padding: 1px 5px;
}

/* Light mode overrides for plan cards */
.window:not(.dark) .babel-plan-card {
  background: #FFFFFF !important;
  border: 1px solid #0A0A0A !important;
}
.window:not(.dark) .babel-plan-name {
  color: #0A0A0A !important;
}
.window:not(.dark) .babel-plan-desc {
  color: #64748B !important;
}
.window:not(.dark) .babel-plan-badge-starter {
  background: #ECFDF5 !important;
  border-color: #047857 !important;
  color: #047857 !important;
}
.window:not(.dark) .babel-plan-badge-pro {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
  color: #0284C7 !important;
}
.window:not(.dark) .babel-plan-badge-founder {
  background: #FEF3C7 !important;
  border-color: #D97706 !important;
  color: #B45309 !important;
}


/* Torre de Babel Logo in Menubar */
.menubar-babel-logo-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  margin-right: 1px;
}
.menubar-babel-logo-box:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.menubar-babel-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
}

/* Twitter link segment */
a.glass-seg {
  text-decoration: none;
  cursor: pointer;
}
a.glass-seg:hover {
  text-decoration: none;
  color: #ffffff;
}

/* ==========================================================================
   BABEL HERO — MINIMAL EXTENSION-LIKE HEADER, PLAN STRIP & PLANS MODAL
   ========================================================================== */

.window {
  position: relative;
}

.babel-brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.babel-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.babel-header-chip {
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--bb-badge-border);
  border-radius: 4px;
  background: var(--bb-badge-bg);
  color: var(--bb-badge-text);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.babel-header-chip:hover {
  border-color: var(--bb-row-hover-border);
  color: var(--bb-row-hover-border);
}

.babel-header-chip-wallet {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.babel-plan-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 12px;
  border-bottom: 1px solid var(--bb-row-border);
  background: var(--bb-row-bg);
  font-family: var(--mono);
}

.babel-plan-badge {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--bb-section-counter);
}

.babel-plan-btn {
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--bb-row-hover-border);
  border-radius: 3px;
  background: transparent;
  color: var(--bb-row-hover-border);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.babel-plan-btn:hover {
  background: var(--bb-row-hover-bg);
}

.babel-rsi-telemetry {
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid var(--bb-row-border);
  border-radius: 4px;
  background: var(--bb-row-bg);
  font-family: var(--mono);
}

.babel-rsi-telemetry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--bb-row-hover-border);
}

.babel-rsi-telemetry-value {
  color: var(--bb-section-counter);
}

.babel-rsi-telemetry-sub {
  margin-top: 3px;
  font-size: 8.5px;
  color: var(--bb-row-desc);
}

.babel-rsi-telemetry-sub strong {
  color: var(--bb-row-name);
}

/* Plans modal inside the hero window */
.babel-plans-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.babel-plans-overlay[hidden] {
  display: none;
}

.babel-plans-modal {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  background: var(--bb-bg);
  box-shadow: var(--bb-shadow);
  color: var(--bb-title-text);
}

.babel-plans-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bb-row-border);
}

.babel-plans-title {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bb-title-text);
}

.babel-plans-sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--bb-row-desc);
}

.babel-plans-close {
  width: 22px;
  height: 22px;
  border: 1px solid var(--bb-row-border);
  border-radius: 4px;
  background: transparent;
  color: var(--bb-row-desc);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.babel-plans-close:hover {
  color: var(--bb-row-name);
  border-color: var(--bb-row-name);
}

.babel-plans-list {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.babel-plan-card {
  padding: 9px;
  border: 1px solid var(--bb-row-border);
  border-radius: 8px;
  background: var(--bb-row-bg);
}

.babel-plan-card.babel-plan-pro {
  border-color: rgba(56, 189, 248, 0.5);
}

.babel-plan-card.babel-plan-founder {
  border-color: rgba(245, 158, 11, 0.5);
}

.babel-plan-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.babel-plan-name {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bb-row-name);
}

.babel-plan-price {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  color: var(--bb-section-counter);
  white-space: nowrap;
}

.babel-plan-price small {
  font-size: 8px;
  font-weight: 600;
  color: var(--bb-row-desc);
}

.babel-plan-sol {
  margin: 2px 0 0;
  min-height: 11px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--bb-row-desc);
}

.babel-plan-desc {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.35;
  color: var(--bb-row-desc);
}

.babel-plan-features {
  display: grid;
  gap: 3px;
  margin: 7px 0 8px;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--bb-row-desc);
}

.babel-plan-features li::before {
  content: "•";
  margin-right: 5px;
  color: var(--bb-section-counter);
}

.babel-plan-action {
  width: 100%;
  height: 24px;
  border: 1px solid var(--bb-row-border);
  border-radius: 3px;
  background: transparent;
  color: var(--bb-row-name);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.babel-plan-action:hover {
  border-color: var(--bb-row-hover-border);
  color: var(--bb-row-hover-border);
}

.babel-plan-action-primary {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
}

.babel-plan-action-founder {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
}

.babel-plans-note {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.35;
  color: var(--bb-row-desc);
}

/* Shared Sites (Experimental, all plans) */
.babel-shared-sites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.babel-shared-sites-grid .babel-router-chip {
  justify-content: flex-start;
  width: 100%;
}

.babel-shared-count {
  margin-left: auto;
  font-size: 8px;
  opacity: 0.7;
  font-weight: 700;
}

.babel-shared-sites-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.35;
  color: var(--bb-row-desc);
}

.babel-shared-sites-meta strong {
  color: #10B981;
}

.babel-shared-site-notice {
  margin: 0;
  min-height: 11px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: #38BDF8;
}

.babel-router-chip.babel-site-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Menubar and footer links */
.menubar a.menu-item {
  color: inherit;
  text-decoration: none;
}
.foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot a:hover {
  color: #10B981;
}
