:root {
      /* Deep Night Violet & Amethyst Ink (Pure Violet, ZERO Red) */
      --bg-page: #0a0714;
      --bg-window: rgba(14, 10, 24, 0.96);
      --bg-sidebar: rgba(12, 8, 20, 0.98);
      --bg-card: rgba(20, 14, 34, 0.85);
      --bg-card-hover: rgba(26, 18, 44, 0.92);
      --bg-ctrl: rgba(28, 20, 48, 0.85);
      --bg-ctrl-hover: rgba(38, 28, 64, 0.95);
      --bg-active-tab: rgba(244, 114, 182, 0.15);

      /* Soft Pink & Violet Palette (Exact Match to Aiko Logo) */
      --accent: #f472b6;
      --accent-soft: #f9a8d4;
      --accent-lilac: #c084fc;
      --accent-glow: rgba(244, 114, 182, 0.35);
      --accent-border: rgba(244, 114, 182, 0.45);

      /* Clean Crisp Typography */
      --text-main: #fdf4f8;
      --text-sub: #cbd5e1;
      --text-muted: #9d94b8;
      --text-dim: #736991;

      /* Subtle Hairline Borders */
      --border: rgba(192, 132, 252, 0.12);
      --border-subtle: rgba(192, 132, 252, 0.08);
      --border-hover: rgba(244, 114, 182, 0.42);
      --border-card: rgba(192, 132, 252, 0.16);

      /* Generous Rounded Corners */
      --radius-lg: 20px;
      --radius: 16px;
      --radius-md: 12px;
      --radius-sm: 8px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      outline: none;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    }

    body {
      margin: 0;
      padding: 24px;
      background: radial-gradient(ellipse 90% 65% at 50% 5%, rgba(120, 50, 190, 0.16) 0%, rgba(10, 7, 20, 0) 70%), #0a0714;
      color: var(--text-main);
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      overflow-x: hidden;
      font-size: 14px;
      line-height: 1.4;
      user-select: none;
    }

    .app-window {
      width: 96vw;
      max-width: 1460px;
      height: 94vh;
      min-height: 720px;
      background: var(--bg-window);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(192, 132, 252, 0.08);
      display: flex;
      overflow: hidden;
      position: relative;
      backdrop-filter: blur(24px);
    }

    /* в”Ђв”Ђв”Ђ SLIM & NARROW NAVIGATION SIDEBAR (Home, Dashboard, Control...) в”Ђв”Ђв”Ђ */
    .sidebar {
      width: 140px;
      background: var(--bg-sidebar);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      padding: 22px 10px 18px 10px;
      flex-shrink: 0;
    }

    .sidebar-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 4px 22px 4px;
      cursor: pointer;
    }

    .logo-img {
      width: 92px;
      height: auto;
      display: block;
      filter: drop-shadow(0 2px 10px rgba(192, 132, 252, 0.25));
      transition: transform 0.2s ease;
      will-change: transform;
    }

    .logo-img:hover {
      transform: scale(1.04);
    }

    .side-nav {
      display: flex;
      flex-direction: column;
      gap: 3px;
      flex: 1;
    }

    .side-link {
      display: flex;
      align-items: center;
      padding: 9px 12px;
      border-radius: var(--radius-sm);
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.16s ease;
      will-change: transform, background;
      border: 1px solid transparent;
    }

    .side-link:hover {
      color: var(--text-main);
      background: rgba(255, 255, 255, 0.04);
      transform: translateX(2px);
    }

    .side-link.active {
      color: #ffffff;
      background: rgba(244, 114, 182, 0.14);
      border: 1px solid var(--accent-border);
      box-shadow: 0 0 16px rgba(244, 114, 182, 0.16);
    }

    .sidebar-profile {
      margin-top: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-top: 14px;
      border-top: 1px solid var(--border-subtle);
    }

    .profile-meta {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 0 4px;
    }

    .profile-label {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: 0.8px;
    }

    .profile-name {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-sub);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .profile-btns {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .profile-btn {
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 11.5px;
      font-weight: 600;
      padding: 7px 10px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: all 0.15s ease;
      text-align: center;
    }

    .profile-btn:hover {
      background: var(--bg-ctrl-hover);
      border-color: var(--accent-border);
      color: #ffffff;
      transform: translateY(-1px);
    }

    /* в”Ђв”Ђв”Ђ MAIN CONTENT в”Ђв”Ђв”Ђ */
    .main-content {
      flex: 1;
      overflow-y: auto;
      padding: 24px 32px 32px 32px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      min-width: 0;
    }

    .main-content::-webkit-scrollbar {
      width: 6px;
    }
    .main-content::-webkit-scrollbar-track {
      background: transparent;
    }
    .main-content::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 3px;
    }

    .top-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 48px;
    }

    .header-left {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .header-tag {
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 1.8px;
      color: var(--accent);
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .page-title {
      font-size: 32px;
      font-weight: 800;
      letter-spacing: -0.6px;
      color: #ffffff;
      line-height: 1.1;
    }

    .live-sync-badge {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(244, 114, 182, 0.08);
      border: 1px solid var(--accent-border);
      padding: 7px 16px;
      border-radius: 30px;
      font-size: 11.5px;
      font-weight: 800;
      color: var(--accent);
      letter-spacing: 0.8px;
      text-transform: uppercase;
      box-shadow: 0 0 16px rgba(244, 114, 182, 0.16);
      transition: all 0.2s ease;
      cursor: pointer;
    }

    .live-dot {
      width: 7px;
      height: 7px;
      background: var(--accent);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--accent);
      animation: pulseDot 2.2s infinite ease-in-out;
    }

    @keyframes pulseDot {
      0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px var(--accent); }
      50% { transform: scale(1.3); opacity: 0.75; box-shadow: 0 0 12px var(--accent-hover); }
    }

    .live-sync-badge.offline {
      background: rgba(100, 90, 115, 0.08);
      border-color: rgba(100, 90, 115, 0.2);
      color: var(--text-muted);
      box-shadow: none;
    }
    .live-sync-badge.offline .live-dot {
      background: var(--text-muted);
      box-shadow: none;
      animation: none;
    }

    /* в”Ђв”Ђв”Ђ SIDE-MODULES CONTROL BOARD LAYOUT в”Ђв”Ђв”Ђ */
    .control-board {
      display: flex;
     
 flex-direction: row;
      gap: 22px;
      width: 100%;
      flex: 1;
      align-items: flex-start;
      overflow: visible;
    }

    /* Column 1: MODULES SIDEBAR (EXPANDED TO 200px) */
    .modules-sidebar {
      width: 200px;
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius);
      padding: 16px 12px;
      display: flex;
      flex-direction: column;
      gap: 5px;
      flex-shrink: 0;
      box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
    }

    .modules-header {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1.2px;
      color: var(--text-dim);
      padding: 0 8px 12px 8px;
      text-transform: uppercase;
    }

    .module-item {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 10px 14px;
      border-radius: var(--radius-sm);
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.18s ease;
      border: 1px solid transparent;
      user-select: none;
    }

    .module-item:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(244, 114, 182, 0.2);
    }

    .module-item.active {
      color: #ffffff;
      background: linear-gradient(135deg, rgba(192, 132, 252, 0.18) 0%, rgba(244, 114, 182, 0.18) 100%);
      border-color: var(--accent-border);
      box-shadow: 0 0 16px rgba(244, 114, 182, 0.2);
    }

    .mod-icon {
      width: 24px;
      height: 24px;
      border-radius: 7px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11.5px;
      font-weight: 800;
      color: var(--text-sub);
      transition: all 0.18s ease;
    }

    .module-item.active .mod-icon {
      background: linear-gradient(135deg, var(--accent-lilac) 0%, var(--accent) 100%);
      border-color: transparent;
      color: #ffffff;
      box-shadow: 0 0 10px var(--accent-glow);
    }

    /* WIDE CONTENT PANES & EXPANDED FUNCTION CARDS */
    .panes-wrapper {
      flex: 1;
      width: 100%;
      min-width: 0;
    }

    .content-pane {
      display: none;
      width: 100%;
    }

    .content-pane.active {
      display: grid;
      grid-template-columns: repeat(2, minmax(380px, 1fr));
      gap: 22px;
      width: 100%;
      animation: fadeInPane 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes fadeInPane {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* в”Ђв”Ђв”Ђ FEATURE CARDS & CONTROLS в”Ђв”Ђв”Ђ */
    .feature-card {
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius);
      padding: 24px 26px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
      transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
      position: relative;
    }

    .feature-card:hover {
      border-color: var(--border-hover);
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(244, 114, 182, 0.08);
      transform: translateY(-2px);
    }

    .card-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .card-title {
      font-size: 16px;
      font-weight: 800;
      color: #ffffff;
      letter-spacing: -0.2px;
    }

    .card-badge {
      width: 22px;
      height: 22px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
    }

    .card-rows {
      display: flex;
      flex-direction: column;
 

     gap: 14px;
    }

    .control-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 34px;
      position: relative;
    }

    .control-name {
      font-size: 13.5px;
      font-weight: 600;
      color: var(--text-sub);
      user-select: none;
      cursor: pointer;
    }

    .control-name:hover {
      color: var(--text-main);
    }

    /* в”Ђв”Ђв”Ђ SWITCH TOGGLE в”Ђв”Ђв”Ђ */
    .switch {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 24px;
      flex-shrink: 0;
      cursor: pointer;
    }

    .switch input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
      margin: 0;
      pointer-events: none;
    }

    .switch-track {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: #191122;
      border: 1px solid #281938;
      border-radius: 30px;
      pointer-events: none;
      transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .switch-track::before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 2px;
      top: 2px;
      background: #73678b;
      border-radius: 50%;
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
      box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }

    .switch input:checked + .switch-track {
      background: linear-gradient(135deg, var(--accent-lilac) 0%, var(--accent) 100%);
      border-color: var(--accent);
      box-shadow: 0 0 14px var(--accent-glow);
    }

    .switch input:checked + .switch-track::before {
      transform: translateX(20px);
      background: #ffffff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    }

    /* в”Ђв”Ђв”Ђ SLIDER (Dynamic Direct Gradient Fill) в”Ђв”Ђв”Ђ */
    .slider-group {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .slider-num {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-sub);
      min-width: 46px;
      text-align: right;
      cursor: pointer;
      padding: 2px 5px;
      border-radius: 4px;
      transition: all 0.14s ease;
    }

    .slider-num:hover {
      color: #ffffff;
      background: rgba(244, 114, 182, 0.15);
    }

    .slider-track-wrap {
      width: 130px;
      display: flex;
      align-items: center;
    }

    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 5px;
      border-radius: 3px;
      background: #241634;
      outline: none;
      cursor: pointer;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: #ffffff;
      cursor: pointer;
      border: 2.5px solid var(--accent);
      box-shadow: 0 0 10px var(--accent-glow);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    input[type="range"]::-webkit-slider-thumb:hover {
      transform: scale(1.3);
      box-shadow: 0 0 16px var(--accent);
    }

    /* в”Ђв”Ђв”Ђ CUSTOM DROPDOWN в”Ђв”Ђв”Ђ */
    .dropdown-container {
      position: relative;
    }

    .dropdown-container.open {
      z-index: 9999 !important;
    }

    .dropdown-trigger {
      background: var(--bg-ctrl);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 6px 14px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-sub);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 110px;
      justify-content: space-between;
      transition: all 0.16s ease;
    }

    .dropdown-trigger:hover {
      border-color: var(--accent-border);
      color: #ffffff;
      background: var(--bg-ctrl-hover);
      box-shadow: 0 0 12px rgba(244, 114, 182, 0.15);
    }

    .dropdown-arrow {
      color: var(--text-muted);
      font-size: 9px;
      transition: transform 0.2s e
ase;
    }

    .dropdown-container.open .dropdown-arrow {
      transform: rotate(180deg);
    }

    .dropdown-menu {
      position: absolute;
      top: calc(100% + 5px);
      right: 0;
      min-width: 140px;
      background: #170e22;
      border: 1px solid var(--accent-border);
      border-radius: var(--radius-md);
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(244, 114, 182, 0.15);
      padding: 5px;
      z-index: 10000;
      display: none;
      flex-direction: column;
      gap: 3px;
      animation: menuPop 0.15s ease-out;
    }

    @keyframes menuPop {
      from { opacity: 0; transform: translateY(-4px) scale(0.97); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .dropdown-container.open .dropdown-menu {
      display: flex;
    }

    .dropdown-opt {
      padding: 7px 12px;
      font-size: 12.5px;
      font-weight: 500;
      color: var(--text-sub);
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.12s ease;
    }

    .dropdown-opt:hover {
      background: rgba(244, 114, 182, 0.16);
      color: #ffffff;
      transform: translateX(2px);
    }

    .dropdown-opt.selected {
      background: rgba(244, 114, 182, 0.25);
      color: var(--accent);
      font-weight: 700;
    }

    /* в”Ђв”Ђв”Ђ KEYBIND BUTTON в”Ђв”Ђв”Ђ */
    .key-btn {
      background: var(--bg-ctrl);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 6px 14px;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-sub);
      cursor: pointer;
      min-width: 70px;
      text-align: center;
      transition: all 0.16s ease;
      letter-spacing: 0.3px;
    }

    .key-btn:hover {
      border-color: var(--accent-border);
      color: #ffffff;
      background: var(--bg-ctrl-hover);
      box-shadow: 0 0 12px rgba(244, 114, 182, 0.15);
    }

    .key-btn.recording {
      background: rgba(244, 114, 182, 0.22);
      border-color: var(--accent);
      color: #ffffff;
      box-shadow: 0 0 16px var(--accent-glow);
    }

    /* в”Ђв”Ђв”Ђ COLOR BUTTON в”Ђв”Ђв”Ђ */
    .color-btn {
      display: flex;
      align-items: center;
      gap: 7px;
      background: var(--bg-ctrl);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 5px 11px;
      cursor: pointer;
      transition: all 0.16s ease;
    }

    .color-btn:hover {
      border-color: var(--accent-border);
      background: var(--bg-ctrl-hover);
    }

    .color-circle {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 1.5px solid rgba(255, 255, 255, 0.4);
      box-shadow: 0 0 6px rgba(0,0,0,0.5);
    }

    .color-text {
      font-size: 11.5px;
      font-weight: 700;
      color: var(--text-sub);
      letter-spacing: 0.4px;
    }

    /* в”Ђв”Ђв”Ђ AIKO CUSTOM COLOR PICKER POPOVER в”Ђв”Ђв”Ђ */
    .aiko-color-popover {
      position: fixed;
      z-index: 9999999;
      background: #140f24;
      border: 1px solid var(--accent-border);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(244, 114, 182, 0.25);
      border-radius: var(--radius);
      padding: 14px;
      width: 226px;
      user-select: none;
      backdrop-filter: blur(20px);
    }

    .color-pop-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      padding-bottom: 6px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .color-pop-title {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1px;
      color: var(--text-dim);
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .color-pop-close {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 16px;
      cursor: pointer;
      padding: 0 2px;
      line-height: 1;
    }

    .color-pop-close:hover {
      color: var(--accent);
    }

    .color-sb-box {
      width: 100%;
      height: 120px;
      border-radius: 8px;
      position: relative;
      cursor: crosshair;
      margin-bottom: 10px;
      border: 1px solid var(--border-subtle);
      box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    }

    .color-sb-cursor {
      position: absolute;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      border: 2px solid #ffffff;
      box-shadow: 0 0 4px rgba(0,0,0,0.8);
      transform: translate(-50%, -50%);
      pointer-events: none;
    }

    .color-hue-bar {
      width: 100%;
      height: 14px;
      border-radius: 7px;
      position: relative;
      cursor: pointer;
      margin-bottom: 10px;
      border: 1px solid var(--border-subtle);
      background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
    }

    .color-hue-cursor {
      position: absolute;
      top: -2px;
      width: 8px;
      height: 18px;
      border-radius: 4px;
      background: #ffffff;
      border: 1px solid #140e24;
      box-shadow: 0 0 4px rgba(0,0,0,0.6);
      transform: translateX(-50%);
      pointer-events: none;
    }

    .color-swatches-row {
      display: flex;
      gap: 5px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }

    .color-swatch-item {
      width: 20px;
      height: 20px;
      border-radius: 5px;
      cursor: pointer;
      border: 1px solid rgba(255,255,255,0.15);
      transition: transform 0.15s ease;
    }

    .color-swatch-item:hover {
      transform: scale(1.15);
      border-color: #ffffff;
    }

    .color-hex-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .color-preview-box {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      border: 1px solid var(--border);
    }

    .color-hex-field {
      flex: 1;
      background: var(--bg-ctrl);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 5px 8px;
      font-size: 11.5px;
      font-weight: 700;
      color: #ffffff;
      text-transform: uppercase;
      font-family: monospace;
    }

    .color-close-pop-btn {
      background: var(--accent);
      border: none;
      color: #ffffff;
      font-size: 10px;
      font-weight: 800;
      padding: 7px 10px;
      border-radius: 6px;
      cursor: pointer;
      letter-spacing: 0.5px;
    }

    .color-close-pop-btn:hover {
      background: var(--accent-hover);
    }

    /* в”Ђв”Ђв”Ђ HARDWARE-ACCELERATED CURSOR GLOW в”Ђв”Ђв”Ђ */
    .cursor-glow {
      position: fixed;
      top: 0;
      left: 0;
      width: 320px;
      height: 320px;
      margin-left: -160px;
      margin-top: -160px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(244, 114, 182, 0.12) 0%, rgba(192, 132, 252, 0.04) 45%, transparent 70%);
      pointer-events: none;
      z-index: 999999;
      transform: translate3d(-1000px, -1000px, 0);
      will-change: transform;
      mix-blend-mode: screen;
    }

    /* ─── SIDEBAR HEADER & DISCORD PILL ─── */
    .sidebar-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 4px 18px 4px;
      gap: 6px;
    }
    .sidebar-discord-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 11px;
      font-weight: 700;
      padding: 4px 10px;
      color: var(--text-sub);
      text-decoration: none;
      transition: all 0.18s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .sidebar-discord-btn:hover {
      background: rgba(244, 114, 182, 0.15);
      border-color: var(--accent);
      color: #fff;
      transform: translateY(-1px);
    }
    .profile-btn.btn-logout:hover {
      background: rgba(248, 113, 113, 0.16);
      border-color: rgba(248, 113, 113, 0.4);
      color: #f87171;
    }

    /* ─── SCREEN 2: CONTROL LOCKED OVERLAY ─── */
    .control-locked-overlay {
      position: absolute;
      inset: 0;
      background: rgba(8, 5, 14, 0.88);
      backdrop-filter: blur(16px);
      z-index: 99;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-lg);
      animation: fadeIn 0.25s ease;
    }
    .control-locked-card {
      background: rgba(18, 12, 30, 0.98);
      border: 1px solid rgba(192, 132, 252, 0.2);
      border-radius: 20px;
      padding: 34px 40px;
      max-width: 440px;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(244, 114, 182, 0.08);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .control-locked-title {
      font-size: 20px;
      font-weight: 800;
      color: #ffffff;
      letter-spacing: -0.2px;
    }
    .control-locked-desc {
      font-size: 13.5px;
      color: var(--text-muted);
      line-height: 1.55;
    }

    /* ─── SCREEN 1: DASHBOARD VIEW & WAVE CARD ─── */
    .dash-meta-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 4px;
    }
    .dash-meta-items {
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
    }
    .dash-meta-user {
      font-size: 14.5px;
      font-weight: 800;
      color: #ffffff;
      letter-spacing: -0.2px;
    }
    .dash-meta-item {
      font-size: 13px;
      display: inline-flex;
      gap: 5px;
    }
    .dash-meta-item .meta-label {
      color: var(--text-dim);
      font-weight: 600;
    }
    .dash-meta-item .meta-val {
      color: #ffffff;
      font-weight: 700;
    }
    .dash-meta-item .meta-val.status-up {
      color: #34d399;
    }
    .dash-download-fab {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-sub);
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .dash-download-fab:hover {
      background: rgba(244, 114, 182, 0.18);
      border-color: var(--accent);
      color: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(244, 114, 182, 0.25);
    }

    .dash-center-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
      padding: 20px 0;
    }
    .dash-center-card {
      width: 100%;
      max-width: 440px;
      background: rgba(18, 12, 30, 0.96);
      border: 1px solid rgba(192, 132, 252, 0.18);
      border-radius: 24px;
      padding: 34px 38px;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(244, 114, 182, 0.08);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      backdrop-filter: blur(20px);
    }
    .dash-card-brand {
      font-size: 26px;
      font-weight: 800;
      color: #ffffff;
      letter-spacing: 2px;
      margin-bottom: 4px;
    }
    .dash-card-status {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-dim);
      letter-spacing: 1.2px;
      margin-bottom: 24px;
      text-transform: uppercase;
    }

    /* Waveform Pulsing Audio/Signal Bars */
    .wave-bars-wrap {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 6px;
      height: 42px;
      margin-bottom: 14px;
    }
    .wave-bar {
      width: 6px;
      height: 12px;
      border-radius: 4px;
      background: linear-gradient(to top, #ef4444, #f472b6);
      box-shadow: 0 0 10px rgba(244, 114, 182, 0.5);
      animation: wavePulse 1.2s ease-in-out infinite alternate;
    }
    .wave-bar.bar-1 { animation-delay: 0.1s; }
    .wave-bar.bar-2 { animation-delay: 0.3s; }
    .wave-bar.bar-3 { animation-delay: 0.5s; }
    .wave-bar.bar-4 { animation-delay: 0.2s; }
    .wave-bar.bar-5 { animation-delay: 0.4s; }
    .wave-bar.bar-6 { animation-delay: 0.15s; }
    .wave-bar.bar-7 { animation-delay: 0.35s; }

    @keyframes wavePulse {
      0% { height: 8px; opacity: 0.45; }
      50% { height: 38px; opacity: 1; filter: brightness(1.2); }
      100% { height: 14px; opacity: 0.65; }
    }

    .dash-verifying-text {
      font-size: 12px;
      font-weight: 800;
      color: #ffffff;
      letter-spacing: 1.5px;
      margin-bottom: 22px;
      text-transform: uppercase;
    }

    .dash-get-build-btn {
      width: 100%;
      background: rgba(26, 17, 44, 0.95);
      border: 1px solid rgba(244, 114, 182, 0.35);
      color: #ffffff;
      font-size: 13.5px;
      font-weight: 800;
      letter-spacing: 1.2px;
      padding: 13px 20px;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .dash-get-build-btn:hover {
      background: rgba(244, 114, 182, 0.18);
      border-color: var(--accent);
      transform: translateY(-1px);
      box-shadow: 0 6px 24px var(--accent-glow);
    }
    .dash-get-build-btn:active {
      transform: translateY(0);
    }

    .dash-card-divider {
      width: 100%;
      border-top: 1px dashed rgba(192, 132, 252, 0.2);
      margin: 22px 0 18px 0;
    }

    .dash-key-label {
      width: 100%;
      text-align: left;
      font-size: 10.5px;
      font-weight: 700;
      color: var(--text-dim);
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }
    .dash-key-box {
      width: 100%;
      background: #0d0918;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .dash-key-text {
      font-family: monospace;
      font-size: 13px;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 1px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dash-key-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .dash-key-icon-btn {
      background: transparent;
      border: none;
      color: var(--text-dim);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 4px;
      border-radius: 6px;
      transition: all 0.18s ease;
    }
    .dash-key-icon-btn:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.08);
    }

    /* ─── SCREEN 3: AUTH GATE MODAL ─── */
    .auth-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(8, 5, 16, 0.94);
      backdrop-filter: blur(28px);
      z-index: 100000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: fadeIn 0.2s ease;
    }
    .auth-card {
      width: 100%;
      max-width: 380px;
      background: rgba(18, 12, 32, 0.98);
      border: 1px solid rgba(192, 132, 252, 0.2);
      border-radius: 24px;
      padding: 38px 32px;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(244, 114, 182, 0.1);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .auth-brand-title {
      font-size: 28px;
      font-weight: 800;
      color: #ffffff;
      letter-spacing: 2px;
      margin-bottom: 4px;
    }
    .auth-brand-subtitle {
      font-size: 13px;
      color: var(--text-dim);
      margin-bottom: 24px;
      font-weight: 600;
    }
    .auth-error-box {
      width: 100%;
      background: rgba(248, 113, 113, 0.12);
      border: 1px solid rgba(248, 113, 113, 0.35);
      color: #fca5a5;
      font-size: 12.5px;
      font-weight: 600;
      padding: 10px 14px;
      border-radius: 10px;
      margin-bottom: 18px;
      text-align: left;
      line-height: 1.4;
      animation: shake 0.3s ease;
    }
    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-4px); }
      75% { transform: translateX(4px); }
    }
    #auth-form {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .auth-field-group {
      width: 100%;
    }
    .auth-input {
      width: 100%;
      background: #110b20;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      color: #ffffff;
      font-size: 13.5px;
      transition: all 0.2s ease;
    }
    .auth-input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 16px rgba(244, 114, 182, 0.2);
      background: #160e2a;
    }
    .auth-submit-btn {
      width: 100%;
      background: #ffffff;
      border: none;
      color: #0a0714;
      font-size: 14px;
      font-weight: 800;
      padding: 13px;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-top: 6px;
      letter-spacing: 0.3px;
    }
    .auth-submit-btn:hover {
      background: var(--accent);
      color: #ffffff;
      transform: translateY(-1px);
      box-shadow: 0 6px 20px var(--accent-glow);
    }
    .auth-submit-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    .auth-switch-row {
      margin-top: 16px;
      font-size: 12.5px;
      color: var(--text-dim);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .auth-switch-link {
      background: transparent;
      border: none;
      color: var(--accent);
      font-weight: 700;
      cursor: pointer;
      text-decoration: underline;
      font-size: 12.5px;
    }
    .auth-switch-link:hover {
      color: #ffffff;
    }

    /* ─── SUCCESS TOAST (SCREEN 2) ─── */
    .success-toast {
      position: fixed;
      top: 24px;
      right: 24px;
      background: rgba(18, 12, 30, 0.98);
      border: 1px solid var(--border);
      border-left: 3.5px solid #34d399;
      border-radius: 12px;
      padding: 14px 18px;
      box-shadow: 0 16px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(52, 211, 153, 0.15);
      z-index: 9999999;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      animation: slideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1);
      max-width: 360px;
      backdrop-filter: blur(20px);
    }
    @keyframes slideInRight {
      from { transform: translateX(40px); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    .toast-content {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;
    }
    .toast-status-header {
      font-size: 11px;
      font-weight: 800;
      color: #34d399;
      letter-spacing: 1px;
    }
    .toast-text-body {
      font-size: 12.5px;
      color: #ffffff;
      line-height: 1.45;
      font-weight: 500;
    }
    .toast-text-body span {
      color: var(--accent);
      font-weight: 700;
    }
    .toast-close-btn {
      background: transparent;
      border: none;
      color: var(--text-dim);
      font-size: 18px;
      cursor: pointer;
      line-height: 1;
      padding: 0;
      transition: color 0.16s ease;
    }
    .toast-close-btn:hover {
      color: #ffffff;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }