    :root {
      --accent: #18F6C8;
      --accent-2: #7C5CFF;
      --accent-3: #FF3D9A;
      --accent-hover: #42FBE0;
      --bg-deep: #050716;
      --bg-card: rgba(14, 18, 34, 0.82);
      --bg-card2: rgba(18, 24, 44, 0.86);
      --border: rgba(255,255,255,0.10);
      --text-dim: rgba(232, 236, 241, 0.52);
      --text-mid: rgba(232, 236, 241, 0.72);
      --text-bright: rgba(232, 236, 241, 0.96);
      --red: #ff6b6b;
      --yellow: #ffd166;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; }
    body {
      font-family: 'Outfit', system-ui, -apple-system, sans-serif;
      background: var(--bg-deep);
      color: var(--text-bright);
      overflow-x: hidden;
      min-height: 100vh;
    }

    /* ===== Animated Background ===== */
    .bg-stage {
      position: fixed; inset: 0; z-index: -2; overflow: hidden;
      background:
        radial-gradient(1200px 800px at 20% 10%, rgba(24,246,200,0.14), transparent 60%),
        radial-gradient(900px 700px at 90% 20%, rgba(124,92,255,0.14), transparent 60%),
        radial-gradient(900px 700px at 70% 90%, rgba(255,61,154,0.10), transparent 60%),
        linear-gradient(180deg, #050716, #040515 45%, #050716);
    }
    .blob {
      position: absolute; width: 520px; height: 520px;
      filter: blur(38px); opacity: 0.28; border-radius: 999px;
      mix-blend-mode: screen; animation: floaty 10s ease-in-out infinite;
    }
    .blob.b1 { background: rgba(24,246,200,0.9); left: -140px; top: -180px; animation-duration: 12s; }
    .blob.b2 { background: rgba(124,92,255,0.9); right: -180px; top: -120px; animation-duration: 14s; }
    .blob.b3 { background: rgba(255,61,154,0.8); left: 10%; bottom: -220px; animation-duration: 16s; }
    @keyframes floaty {
      0%,100% { transform: translate3d(0,0,0) scale(1); }
      50% { transform: translate3d(30px,-18px,0) scale(1.06); }
    }

    /* ===== Boot Screen ===== */
    #boot-screen {
      position: fixed; inset: 0; z-index: 10000;
      background: rgba(5, 7, 22, 0.96);
      display: flex; align-items: center; justify-content: center;
      transition: opacity 0.45s ease, visibility 0.45s ease;
    }
    #boot-screen.done { opacity: 0; visibility: hidden; pointer-events: none; }
    .boot-spinner {
      width: 44px; height: 44px;
      border: 3px solid rgba(255,255,255,0.14);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ===== Transitions ===== */
    .fade-up { animation: fadeUpIn 0.5s ease both; }
    .fade-up.d1 { animation-delay: 0.06s; }
    .fade-up.d2 { animation-delay: 0.12s; }
    .fade-up.d3 { animation-delay: 0.18s; }
    .fade-up.d4 { animation-delay: 0.24s; }
    @keyframes fadeUpIn {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ===== Fields ===== */
    .field {
      width: 100%;
      background: rgba(12, 16, 30, 0.88);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 12px 14px;
      font-size: 14px;
      color: var(--text-bright);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }
    .field:focus {
      outline: none;
      border-color: rgba(24,246,200,0.65);
      box-shadow: 0 0 0 6px rgba(24,246,200,0.10), 0 12px 34px rgba(0,0,0,0.22);
    }
    .field::placeholder { color: rgba(232,236,241,0.38); }

    /* ===== Buttons ===== */
    .btn-primary {
      background: linear-gradient(135deg, var(--accent), rgba(24,246,200,0.65));
      color: #00110B; font-weight: 900; border: none; border-radius: 14px;
      padding: 14px 18px; font-size: 14px; cursor: pointer; width: 100%;
      transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
      box-shadow: 0 14px 40px rgba(24,246,200,0.14);
      letter-spacing: 0.2px; text-transform: uppercase;
    }
    .btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
    .btn-primary:active { transform: translateY(0) scale(0.99); }
    .btn-primary:disabled { background: rgba(255,255,255,0.08); color: rgba(232,236,241,0.45); cursor: not-allowed; box-shadow: none; }

    .btn-secondary {
      background: rgba(255,255,255,0.06); color: var(--text-bright); font-weight: 800;
      border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
      font-size: 14px; cursor: pointer; width: 100%;
      transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
      letter-spacing: 0.2px; text-transform: uppercase;
    }
    .btn-secondary:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.16); transform: translateY(-1px); }
    .btn-secondary:active { transform: translateY(0); }

    .btn-pill {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 900;
      cursor: pointer; border: none;
      transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, filter 0.12s ease;
      letter-spacing: 0.2px; white-space: nowrap; text-transform: uppercase;
    }
    .btn-pill-accent { background: rgba(24,246,200,0.92); color: #00110B; box-shadow: 0 14px 40px rgba(24,246,200,0.10); }
    .btn-pill-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }
    .btn-pill-ghost { background: rgba(255,255,255,0.06); color: rgba(232,236,241,0.75); border: 1px solid rgba(255,255,255,0.10); }
    .btn-pill-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.16); transform: translateY(-1px); }
    .btn-pill-ghost.active { background: rgba(24,246,200,0.92); color: #00110B; border-color: rgba(24,246,200,0.92); }

    .btn-sm {
      padding: 8px 14px; border-radius: 12px; font-size: 12px; font-weight: 800;
      cursor: pointer; border: 1px solid var(--border); background: rgba(255,255,255,0.06);
      color: rgba(232,236,241,0.75); transition: all 0.12s ease; text-transform: uppercase;
    }
    .btn-sm:hover { background: rgba(255,255,255,0.10); transform: translateY(-1px); }

    /* ===== Cards ===== */
    .card {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.18);
      backdrop-filter: blur(12px);
    }
    .card-interactive { transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease; }
    .card-interactive:hover { border-color: rgba(24,246,200,0.35); transform: translateY(-2px); filter: brightness(1.02); }

    /* ===== Modal ===== */
    .modal-overlay {
      position: fixed; inset: 0; z-index: 200;
      background: rgba(4, 6, 14, 0.80); backdrop-filter: blur(16px);
      display: flex; align-items: center; justify-content: center; padding: 1rem;
      opacity: 0; visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .modal-overlay.open { opacity: 1; visibility: visible; }
    .modal-overlay .modal-body { transform: translateY(14px) scale(0.97); transition: transform 0.25s ease; }
    .modal-overlay.open .modal-body { transform: translateY(0) scale(1); }
    .close-btn {
      color: rgba(232,236,241,0.55); background: none; border: none; cursor: pointer;
      font-size: 22px; line-height: 1; transition: color 0.15s ease, transform 0.15s ease;
    }
    .close-btn:hover { color: rgba(232,236,241,0.95); transform: rotate(6deg); }

    /* ===== Toast ===== */
    #toast-container {
      position: fixed; top: 16px; right: 16px; z-index: 9999;
      display: flex; flex-direction: column; gap: 10px; pointer-events: none;
    }
    .toast {
      padding: 14px 18px; border-radius: 16px; font-size: 13px; font-weight: 800;
      animation: toastSlide 0.28s ease; max-width: 360px;
      backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08);
      pointer-events: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.24);
    }
    .toast-success { background: rgba(6, 95, 70, 0.90); color: #9ff7d5; }
    .toast-error { background: rgba(127, 29, 29, 0.90); color: #ffd2d2; }
    .toast-info { background: rgba(20, 40, 70, 0.90); color: #c9ddff; }
    @keyframes toastSlide {
      from { transform: translateX(16px); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }

    /* ===== Nav Tabs ===== */
    .app-tab {
      background: none; border: none; color: rgba(232,236,241,0.50);
      font-size: 11px; font-weight: 900; cursor: pointer;
      padding: 10px 14px; border-bottom: 2px solid transparent;
      transition: color 0.15s, border-color 0.15s; text-transform: uppercase;
      white-space: nowrap; letter-spacing: 0.2px;
    }
    .app-tab:hover { color: rgba(232,236,241,0.85); }
    .app-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
    @media (max-width: 639px) {
      .app-tab { font-size: 10px; padding: 8px 10px; }
    }
    .tab-badge {
      position: absolute; top: -2px; right: 2px; width: 8px; height: 8px;
      background: var(--accent-3); border-radius: 50%;
      border: 2px solid rgba(10, 12, 26, 0.82);
    }

    /* ===== Ticker ===== */
    .ticker-scroll { animation: tickerMove 22s linear infinite; }
    @keyframes tickerMove { to { transform: translateX(-50%); } }

    /* ===== Messaging ===== */
    .msg-bubble {
      max-width: 80%; padding: 10px 14px; border-radius: 16px;
      font-size: 13px; line-height: 1.45; word-wrap: break-word;
    }
    .msg-mine {
      background: rgba(24,246,200,0.15); border: 1px solid rgba(24,246,200,0.25);
      margin-left: auto; border-bottom-right-radius: 4px;
    }
    .msg-theirs {
      background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
      margin-right: auto; border-bottom-left-radius: 4px;
    }
    .msg-list {
      max-height: 55vh; overflow-y: auto; padding: 8px 4px;
      scroll-behavior: smooth;
    }

    /* ===== Map ===== */
    #map-container { height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
    .leaflet-container { background: #0a0e1a !important; }
    .pulse-dot {
      width: 14px; height: 14px; border-radius: 50%; position: relative;
      box-shadow: 0 0 8px currentColor;
    }
    .pulse-dot::after {
      content: ''; position: absolute; inset: -5px; border-radius: 50%;
      border: 2px solid currentColor; opacity: 0.5;
      animation: pulsering 2s ease-in-out infinite;
    }
    @keyframes pulsering {
      0%,100% { transform: scale(1); opacity: 0.5; }
      50% { transform: scale(1.8); opacity: 0; }
    }
    .map-legend-dot {
      width: 12px; height: 12px; border-radius: 50%; display: inline-block;
    }

    /* ===== Ledger ===== */
    .ledger-event { animation: ledgerSlide 0.3s ease; }
    @keyframes ledgerSlide {
      from { opacity: 0; transform: translateY(-8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .live-dot {
      width: 8px; height: 8px; background: #ff3d3d; border-radius: 50%;
      display: inline-block; animation: livepulse 1.5s ease-in-out infinite;
    }
    @keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

    /* ===== Misc ===== */
    .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
    .hero-gradient {
      background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .mv-brand { font-weight: 900; }
    .mv-brand { color: var(--accent); }
    .line-clamp-2 {
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .avatar-ring {
      width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
      background: linear-gradient(135deg, rgba(24,246,200,0.2), rgba(124,92,255,0.2));
      border: 2px solid rgba(24,246,200,0.4);
    }
    .avatar-ring-lg {
      width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
      background: linear-gradient(135deg, rgba(24,246,200,0.2), rgba(124,92,255,0.2));
      border: 2px solid rgba(24,246,200,0.4);
    }
    .stat-card {
      padding: 12px; border-radius: 16px;
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
      text-align: center;
    }

    @keyframes confettiPop {
      0% { opacity: 1; }
      100% { opacity: 0; transform: translate(var(--tx,50px), var(--ty,-120px)) rotate(720deg); }
    }
    .confetti-burst { animation: confettiBurst 0.6s ease; }
    @keyframes confettiBurst {
      0% { transform: scale(0.5); opacity: 0; }
      50% { transform: scale(1.2); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }

    @media (max-width: 640px) {
      #map-container { height: 300px; }
    }
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 3px; }

    /* ===== MUXI FAB ===== */
    #muxi-fab {
      position: fixed; bottom: 24px; right: 24px; z-index: 100;
      width: 48px; height: 48px; border-radius: 50%;
      background: rgba(14, 18, 34, 0.92); border: 1px solid rgba(24,246,200,0.3);
      display: grid; place-items: center; cursor: pointer;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
      transition: transform 0.2s ease, border-color 0.2s ease;
      animation: floaty 4s ease-in-out infinite;
    }
    #muxi-fab:hover { transform: scale(1.08); border-color: rgba(24,246,200,0.6); }
    #muxi-bubble {
      position: fixed; bottom: 82px; right: 16px; z-index: 101;
      background: rgba(14, 18, 34, 0.95); border: 1px solid rgba(24,246,200,0.25);
      border-radius: 18px; padding: 14px; max-width: 260px;
      box-shadow: 0 16px 48px rgba(0,0,0,0.5); backdrop-filter: blur(12px);
      opacity: 0; visibility: hidden; transform: translateY(8px);
      transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    }
    #muxi-bubble.show { opacity: 1; visibility: visible; transform: translateY(0); }
    .muxi-tap-counter { display: none; }

    /* ===== Extra Animations ===== */
    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }
    .shimmer-border {
      position: relative;
      overflow: hidden;
    }
    .shimmer-border::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      border: 1px solid transparent;
      background: linear-gradient(90deg, transparent, rgba(24,246,200,0.3), transparent) border-box;
      -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      background-size: 200% 100%;
      animation: shimmer 3s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes glowPulse {
      0%,100% { text-shadow: 0 0 8px rgba(24,246,200,0.3); }
      50% { text-shadow: 0 0 20px rgba(24,246,200,0.6), 0 0 40px rgba(24,246,200,0.2); }
    }
    .glow-text { animation: glowPulse 3s ease-in-out infinite; }
    @keyframes slideInLeft {
      from { opacity: 0; transform: translateX(-20px); }
      to { opacity: 1; transform: translateX(0); }
    }
    @keyframes slideInRight {
      from { opacity: 0; transform: translateX(20px); }
      to { opacity: 1; transform: translateX(0); }
    }
    .slide-in-left { animation: slideInLeft 0.5s ease both; }
    .slide-in-right { animation: slideInRight 0.5s ease both; }
    @keyframes scaleIn {
      from { opacity: 0; transform: scale(0.92); }
      to { opacity: 1; transform: scale(1); }
    }
    .scale-in { animation: scaleIn 0.4s ease both; }
    @keyframes gradientFlow {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    .gradient-flow {
      background: linear-gradient(270deg, rgba(24,246,200,0.15), rgba(124,92,255,0.15), rgba(255,61,154,0.10), rgba(24,246,200,0.15));
      background-size: 300% 300%;
      animation: gradientFlow 8s ease infinite;
    }
    @keyframes numberTick {
      0% { opacity: 0; transform: translateY(-8px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    .number-tick { animation: numberTick 0.35s ease both; }
    @keyframes borderGlow {
      0%,100% { border-color: rgba(24,246,200,0.15); box-shadow: 0 0 0 rgba(24,246,200,0); }
      50% { border-color: rgba(24,246,200,0.4); box-shadow: 0 0 20px rgba(24,246,200,0.08); }
    }
    .border-glow { animation: borderGlow 4s ease-in-out infinite; }

    /* ===== v2.1 Category Tiles ===== */
    .cat-tile {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 12px 8px; border-radius: 16px; cursor: pointer; transition: all 0.2s ease;
      background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
      text-align: center; min-height: 80px; position: relative;
    }
    .cat-tile:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }
    .cat-tile.active { border-color: var(--accent); background: rgba(24,246,200,0.08); box-shadow: 0 0 12px rgba(24,246,200,0.1); }
    .cat-tile .cat-emoji { font-size: 24px; margin-bottom: 4px; }
    .cat-tile .cat-name { font-size: 10px; font-weight: 800; color: rgba(232,236,241,0.75); line-height: 1.2; }
    .cat-tile .cat-count {
      position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 800;
      background: var(--accent); color: #0A0C1A; min-width: 18px; height: 18px;
      border-radius: 99px; display: grid; place-items: center; padding: 0 4px;
    }

    /* ===== v2.1 Worker Profile Cards ===== */
    .worker-card {
      background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
      border-radius: 16px; padding: 16px; margin-bottom: 10px; transition: all 0.2s ease;
    }
    .worker-card:hover { background: rgba(255,255,255,0.07); }
    .worker-card.awarded { border-color: rgba(24,246,200,0.30); background: rgba(24,246,200,0.06); }
    .worker-avatar {
      width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
      font-weight: 900; font-size: 16px; flex-shrink: 0;
    }
    .xp-badge {
      display: inline-flex; align-items: center; gap: 3px;
      font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 99px;
    }
    .xp-recruit { background: rgba(107,114,128,0.2); color: #9ca3af; }
    .xp-specialist { background: rgba(59,130,246,0.15); color: #60a5fa; }
    .xp-elite { background: rgba(124,92,255,0.15); color: #a78bfa; }
    .xp-legendary { background: rgba(234,179,8,0.15); color: #fbbf24; }

    /* ===== v2.1 Status Dots ===== */
    .status-dot {
      width: 10px; height: 10px; border-radius: 50%; display: inline-block;
      margin-right: 6px; vertical-align: middle; flex-shrink: 0;
    }
    .status-online { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
    .status-busy { background: #f59e0b; }
    .status-offline { background: #6b7280; }

    /* ===== v2.1 Mission Urgency ===== */
    .mission-urgent {
      border: 1px solid #ef4444 !important;
      animation: urgentPulse 2s ease-in-out infinite;
      position: relative;
    }
    .mission-urgent .urgent-tag {
      position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800;
      color: #ef4444; background: rgba(239,68,68,0.12); padding: 2px 8px; border-radius: 99px;
      border: 1px solid rgba(239,68,68,0.25); z-index: 2;
    }
    @keyframes urgentPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
      50% { box-shadow: 0 0 12px 4px rgba(239,68,68,0.2); }
    }

    /* ===== v2.1 Notification Badges ===== */
    .tab-badge {
      position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px;
      border-radius: 99px; font-size: 9px; font-weight: 800;
      background: var(--accent-3); color: #fff; display: grid; place-items: center;
      padding: 0 3px; line-height: 1;
    }
    .app-tab { position: relative; }

    /* ===== v2.1 Rating Stars ===== */
    .rating-star {
      font-size: 28px; cursor: pointer; transition: transform 0.15s ease, color 0.15s ease;
      color: rgba(255,255,255,0.2); display: inline-block;
    }
    .rating-star:hover { transform: scale(1.2); }
    .rating-star.active { color: #fbbf24; }

    /* ===== v2.1 Browse Operatives ===== */
    .operative-scroll {
      display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
      scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
    }
    .operative-card {
      flex-shrink: 0; width: 160px; padding: 14px; border-radius: 16px; text-align: center;
      background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
      transition: all 0.2s ease; cursor: pointer;
    }
    .operative-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(24,246,200,0.25); transform: translateY(-2px); }

    /* ===== v2.1 Onboarding Card ===== */
    .onboarding-card {
      background: linear-gradient(135deg, rgba(24,246,200,0.08), rgba(124,92,255,0.08));
      border: 1px solid rgba(24,246,200,0.20); border-radius: 20px; padding: 24px;
      margin-bottom: 20px; position: relative;
    }
    .onboarding-card .dismiss-btn {
      position: absolute; top: 12px; right: 12px; background: none; border: none;
      color: rgba(232,236,241,0.4); cursor: pointer; font-size: 16px;
    }

    /* ===== v2.1 MV icon inline ===== */
    .mv-icon { display: inline-block; vertical-align: middle; margin: 0 2px -2px 0; }