:root {
    --red: #c0392b;
    --red-hover: #e74c3c;
    --red-glow: rgba(192, 57, 43, 0.4);
    --bg-dark: #111111;
    --bg-btn: rgba(30, 30, 30, 0.85);
    --bg-btn-hover: rgba(45, 45, 45, 0.95);
    --text-primary: #f0f0f0;
    --text-muted: #666;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.15);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    user-select: none;
  }

  /* Background */
  .bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 70% 60% at 20% 80%, rgba(30,20,15,0.9) 0%, transparent 70%),
      radial-gradient(ellipse 50% 50% at 80% 30%, rgba(10,10,10,0.6) 0%, transparent 60%),
      linear-gradient(160deg, #1a1410 0%, #0d0d0d 40%, #111318 100%);
    z-index: 0;
    transition: transform 0.1s ease-out;
  }
  .bg::after {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
  }

  /* Landscape silhouette */
  .landscape {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(15,12,10,0.7) 30%, transparent 100%);
    z-index: 1;
  }
  .landscape::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 160px;
    background:
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 40px, transparent 40px) 0 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 70px, transparent 70px) 80px 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 55px, transparent 55px) 160px 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 90px, transparent 90px) 240px 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 45px, transparent 45px) 320px 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 75px, transparent 75px) 400px 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 60px, transparent 60px) 480px 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 85px, transparent 85px) 560px 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 50px, transparent 50px) 640px 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 100px, transparent 100px) 720px 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 65px, transparent 65px) 800px 0 / 80px 160px,
      linear-gradient(to top, #0a0a0a 0px, #0a0a0a 80px, transparent 80px) 880px 0 / 80px 160px;
    background-repeat: repeat-x;
    opacity: 0.6;
  }

  /* Top bar */
  .topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    gap: 6px;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
  }

  /* Profile badge — clickable to rename */
  .profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-right: 8px;
    position: relative;
  }
  .profile-badge:hover { background: rgba(255,255,255,0.1); border-color: var(--border-hover); }
  .profile-badge:hover .edit-hint { opacity: 1; }

  .edit-hint {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #888;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
  }

  .profile-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 600;
    color: #ddd; letter-spacing: 0.5px;
  }

  /* Name edit modal */
  .modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
  }
  .modal-overlay.open { display: flex; }

  .modal {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 24px;
    width: 300px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  }
  .modal h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 6px;
  }
  .modal p {
    font-size: 11px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
  }
  .modal input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 10px 12px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 14px;
    user-select: text;
  }
  .modal input:focus { border-color: rgba(255,255,255,0.3); }
  .modal-btns { display: flex; gap: 8px; }
  .modal-btn {
    flex: 1;
    padding: 9px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s;
    border: 1px solid transparent;
  }
  .modal-btn-cancel {
    background: transparent;
    border-color: rgba(255,255,255,0.1);
    color: #888;
  }
  .modal-btn-cancel:hover { background: rgba(255,255,255,0.05); color: #bbb; }
  .modal-btn-save {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
  }
  .modal-btn-save:hover { background: rgba(255,255,255,0.18); }

  /* Center panel */
  .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    animation: panelFadeUp 0.6s ease both;
  }

  @keyframes panelFadeUp {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
  }

  /* Logo */
  .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
  }

  .logo-wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1;
    color: #ffffff;
    text-shadow:
      0 0 60px rgba(255,255,255,0.15),
      0 2px 4px rgba(0,0,0,0.8);
  }

  /* Menu */
  .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 300px;
  }

  @keyframes btnFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    width: 100%;
    background: var(--bg-btn);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
    animation: btnFadeUp 0.5s ease both;
  }
  .menu-btn:nth-child(1) { animation-delay: 0.10s; }
  .menu-btn:nth-child(2) { animation-delay: 0.16s; }
  .menu-btn:nth-child(3) { animation-delay: 0.22s; }
  .menu-btn:nth-child(4) { animation-delay: 0.28s; }

  .menu-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: rgba(255,255,255,0.04);
    transition: width 0.25s ease;
  }
  .menu-btn:hover::before { width: 100%; }
  .menu-btn:hover { background: var(--bg-btn-hover); border-color: var(--border-hover); }
  .menu-btn:active { opacity: 0.85; }

  .menu-btn .icon { width: 18px; height: 18px; opacity: 0.75; flex-shrink: 0; }

  /* Quit button */
  .btn-quit {
    background: transparent;
    border: 1px solid rgba(192,57,43,0.3);
    color: var(--red-hover);
    margin-top: 8px;
    letter-spacing: 2px;
    animation-delay: 0.28s !important;
  }
  .btn-quit:hover { background: rgba(192,57,43,0.08); border-color: rgba(192,57,43,0.6); color: #ff6b5b; }

  /* Footer */
  .footer {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    z-index: 10;
    white-space: nowrap;
    text-align: center;
  }

    /* Avatar */
  .profile-avatar {
    width: 26px; height: 26px;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px; font-weight: 700; color: #fff;
    flex-shrink: 0;
  }

  /* ── VERSIONS PANEL ── */
  .versions-panel {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    background: rgba(10,10,10,0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .versions-panel.open {
    opacity: 1;
    pointer-events: all;
  }

  .versions-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
  }
  .versions-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
  }
  .versions-title span {
    color: #fff;
    font-size: 15px;
  }
  .versions-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #aaa;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s;
  }
  .versions-back:hover { background: rgba(255,255,255,0.09); color: #fff; border-color: rgba(255,255,255,0.2); }

  .versions-body {
    display: flex;
    flex: 1;
    overflow: hidden;
  }

  /* Left: grid of version cards */
  .versions-grid-wrap {
    flex: 1;
    padding: 20px 20px 20px 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
  }
  .versions-grid-wrap::-webkit-scrollbar { width: 4px; }
  .versions-grid-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

  .versions-select-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
  }

  .versions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .version-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.18s, transform 0.18s;
    aspect-ratio: 16/9;
    background: #1a1a1a;
  }
  .version-card:hover { transform: scale(1.02); border-color: rgba(255,255,255,0.2); }
  .version-card.active { border-color: #4caf50; }

  .version-card-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) saturate(0.7);
    transition: filter 0.18s;
  }
  .version-card:hover .version-card-bg,
  .version-card.active .version-card-bg { filter: brightness(0.55) saturate(0.85); }

  .version-card-label {
    position: absolute; inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 8px 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  }
  .version-card.active .version-card-label::after {
    content: '✓';
    position: absolute;
    top: 7px; right: 9px;
    font-family: sans-serif;
    font-size: 13px;
    color: #4caf50;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    line-height: 20px;
    text-align: center;
  }

  /* Right: info panel */
  .versions-info {
    width: 300px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    padding: 20px 20px 16px;
    gap: 14px;
  }

  .info-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .info-preview {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: #111;
    position: relative;
    flex-shrink: 0;
  }
  .info-preview-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) saturate(0.85);
    transition: background-image 0.2s;
  }
  .info-preview-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 8px 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  }

  .info-description {
    font-family: 'Exo 2', sans-serif;
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    flex: 1;
  }

  .info-version-tag {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px;
    padding: 3px 10px;
  }

  .info-modules-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .info-modules-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
  }
  .info-module-icon {
    width: 22px; height: 22px;
    border-radius: 3px;
    background: #555;
    border: 1px solid rgba(255,255,255,0.15);
  }

  .info-save-btn {
    padding: 11px;
    background: #4caf50;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s;
    width: 100%;
  }
  .info-save-btn:hover { background: #43a047; }

  /* ── SERVERS PANEL ── */
  .servers-panel {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(10,10,10,0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .servers-panel.open { opacity: 1; pointer-events: all; }

  .servers-heading {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 18px 0 10px;
    flex-shrink: 0;
  }

  /* Center column — narrow like MC screenshot */
  .servers-center {
    width: 520px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    padding-bottom: 0;
  }

  /* Search box at top like MC */
  .servers-search {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2px;
    padding: 6px 10px;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-size: 12px;
    outline: none;
    margin-bottom: 4px;
    text-align: center;
  }
  .servers-search::placeholder { color: rgba(255,255,255,0.25); }

  /* Section labels */
  .servers-section-label {
    font-family: 'Exo 2', sans-serif;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 2px 4px;
  }

  .server-list {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
  }
  .server-list::-webkit-scrollbar { width: 3px; }
  .server-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

  .server-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 3px;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    transition: background 0.15s, border-color 0.15s;
    position: relative;

    width: 100%;
    max-width: 500px;
    min-height: 80px;
  }
  .server-entry:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
  .server-entry.selected {
    background: rgba(100,160,255,0.1);
    border-color: rgba(100,160,255,0.25);
    outline: 1px solid rgba(100,160,255,0.15);
  }

  /* Checkmark on left like MC */
  .server-check {
    width: 14px;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
    text-align: center;
  }

  .server-icon {
    width: 64px; height: 64px;
    border-radius: 2px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: #1a2a1a;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .server-meta { flex: 1; min-width: 0; }
  .server-name {
    font-family: 'Exo 2', sans-serif;
    font-size: 50px; font-weight: 600;
    color: #007bf6;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .server-motd {
    font-family: 'Exo 2', sans-serif;
    font-size: 11px;
    color: rgba(90, 178, 255, 0.821);
    margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .server-ping {
    font-family: 'Exo 2', sans-serif;
    font-size: 10px;
    color: #4caf50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
  }
  .ping-bars {
    display: flex; align-items: flex-end; gap: 2px; height: 12px;
  }
  .ping-bar { width: 3px; background: #4caf50; border-radius: 1px; }

  /* Local network scan section */
  .servers-local {
    padding: 14px 0 6px;
    text-align: center;
  }
  .servers-local-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.3px;
    margin-bottom: 8px;
  }
  .scan-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
  }
  .scan-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    animation: scanPulse 1.4s ease-in-out infinite;
  }
  .scan-dot:nth-child(2) { animation-delay: 0.25s; }
  .scan-dot:nth-child(3) { animation-delay: 0.5s; }
  @keyframes scanPulse {
    0%, 80%, 100% { background: rgba(255,255,255,0.15); transform: scale(0.85); }
    40% { background: rgba(255,255,255,0.55); transform: scale(1.1); }
  }

  /* Bottom action buttons */
  .servers-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0 18px;
    flex-shrink: 0;
    margin-top: auto;
  }
  .servers-actions-row {
    display: flex;
    gap: 5px;
  }
  .srv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 0;
    flex: 1;
    background: var(--bg-btn);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    position: relative;
    overflow: hidden;
  }
  .srv-btn.active:hover { background: var(--bg-btn-hover); border-color: var(--border-hover); }
  .srv-btn::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 0;
    background: rgba(255,255,255,0.04);
    transition: width 0.25s ease;
  }
  .srv-btn.active:hover::before { width: 100%; }
  .srv-btn.disabled {
    opacity: 0.32;
    cursor: default;
    pointer-events: none;
  }

    /* Avatar */
  .profile-avatar {
    width: 26px; height: 26px;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px; font-weight: 700; color: #fff;
    flex-shrink: 0;
  }

  /* ═══════════════════════════════════
     VERSIONS PANEL
  ═══════════════════════════════════ */
  .versions-panel {
    position: absolute; inset: 0; z-index: 20;
    display: flex; flex-direction: column;
    background: rgba(10,10,10,0.97);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .versions-panel.open { opacity: 1; pointer-events: all; }

  .versions-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
  }
  .versions-title {
    font-family: 'Bebas Neue', sans-serif; font-size: 13px;
    letter-spacing: 3px; color: rgba(255,255,255,0.4);
  }
  .versions-title span { color: #fff; font-size: 15px; }
  .versions-back {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px; color: #aaa;
    font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
    transition: all 0.18s;
  }
  .versions-back:hover { background: rgba(255,255,255,0.09); color: #fff; border-color: rgba(255,255,255,0.2); }

  .versions-body { display: flex; flex: 1; overflow: hidden; }

  .versions-grid-wrap {
    flex: 1; padding: 20px 20px 20px 24px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
  }
  .versions-grid-wrap::-webkit-scrollbar { width: 4px; }
  .versions-grid-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
  .versions-select-label {
    font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px;
  }
  .versions-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }

  .version-card {
    position: relative; border-radius: 5px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; transition: border-color 0.18s, transform 0.18s;
    aspect-ratio: 16/9; background: #1a1a1a;
  }
  .version-card:hover { transform: scale(1.02); border-color: rgba(255,255,255,0.2); }
  .version-card.active { border-color: #4caf50; }
  .version-card-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: brightness(0.45) saturate(0.7); transition: filter 0.18s;
  }
  .version-card:hover .version-card-bg,
  .version-card.active .version-card-bg { filter: brightness(0.55) saturate(0.85); }
  .version-card-label {
    position: absolute; inset: 0; display: flex; align-items: flex-end;
    padding: 8px 10px; font-family: 'Bebas Neue', sans-serif; font-size: 20px;
    letter-spacing: 2px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  }
  .version-card.active .version-card-label::after {
    content: '✓'; position: absolute; top: 7px; right: 9px;
    font-family: sans-serif; font-size: 13px; color: #4caf50;
    background: rgba(0,0,0,0.6); border-radius: 50%;
    width: 20px; height: 20px; display: flex; align-items: center;
    justify-content: center; line-height: 20px; text-align: center;
  }

  .versions-info {
    width: 300px; flex-shrink: 0; border-left: 1px solid rgba(255,255,255,0.07);
    display: flex; flex-direction: column; padding: 20px 20px 16px; gap: 14px;
  }
  .info-title {
    font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 3px;
    color: rgba(255,255,255,0.35); text-transform: uppercase; margin-bottom: 2px;
  }
  .info-preview {
    width: 100%; aspect-ratio: 16/9; border-radius: 5px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1); background: #111; position: relative; flex-shrink: 0;
  }
  .info-preview-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.7) saturate(0.85); }
  .info-preview-label {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 12px;
    font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 3px;
    color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,1);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  }
  .info-description { font-family: 'Exo 2', sans-serif; font-size: 11.5px; color: rgba(255,255,255,0.5); line-height: 1.65; flex: 1; }
  .info-version-tag {
    display: inline-block; font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: 1px; color: #fff; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 3px; padding: 3px 10px;
  }
  .info-modules-row { display: flex; align-items: center; gap: 8px; }
  .info-modules-label { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.3); }
  .info-module-icon { width: 22px; height: 22px; border-radius: 3px; background: #555; border: 1px solid rgba(255,255,255,0.15); }
  .info-save-btn {
    padding: 11px; background: #4caf50; border: none; border-radius: 4px; color: #fff;
    font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background 0.18s; width: 100%;
  }
  .info-save-btn:hover { background: #43a047; }

  /* ═══════════════════════════════════
     INFO PANEL
  ═══════════════════════════════════ */
  .info-panel {
    position: absolute; inset: 0; z-index: 20;
    display: flex; flex-direction: column; align-items: center;
    background: rgba(10,10,10,0.97);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
  }
  .info-panel.open { opacity: 1; pointer-events: all; }

  .info-panel-topbar {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
  }
  .info-panel-title {
    font-family: 'Bebas Neue', sans-serif; font-size: 18px;
    letter-spacing: 5px; color: #fff;
  }

  .info-cards-wrap {
    display: flex; gap: 16px; padding: 28px 32px; width: 100%; max-width: 1100px;
    flex: 1; align-items: flex-start;
  }

  .info-card {
    flex: 1; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 6px;
    padding: 24px 22px; display: flex; flex-direction: column; gap: 12px;
    transition: border-color 0.2s;
  }
  .info-card:hover { border-color: rgba(255,255,255,0.14); }

  .info-card-icon {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; margin-bottom: 4px;
  }
  .info-card-icon svg { width: 20px; height: 20px; color: rgba(255,255,255,0.7); }

  .info-card-title {
    font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700;
    color: #fff; letter-spacing: 0.5px;
  }
  .info-card-subtitle {
    font-family: 'Exo 2', sans-serif; font-size: 11.5px;
    color: rgba(255,255,255,0.35); line-height: 1.5; margin-top: -6px;
  }
  .info-card-divider {
    height: 1px; background: rgba(255,255,255,0.07); margin: 2px 0;
  }
  .info-card-body {
    font-family: 'Exo 2', sans-serif; font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.75); line-height: 1.7;
  }
  .info-card-label {
    font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.3); margin-top: 6px; margin-bottom: 2px;
  }
  .info-card-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 5px;
  }
  .info-card-list li {
    font-family: 'Exo 2', sans-serif; font-size: 12px;
    color: rgba(255,255,255,0.55); padding-left: 14px; position: relative; line-height: 1.5;
  }
  .info-card-list li::before {
    content: '•'; position: absolute; left: 0; color: rgba(255,255,255,0.25);
  }

  /* ═══════════════════════════════════
     SERVERS PANEL
  ═══════════════════════════════════ */
  .servers-panel {
    position: absolute; inset: 0; z-index: 20;
    display: flex; flex-direction: column; align-items: center;
    background: rgba(10,10,10,0.97);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  .servers-panel.open { opacity: 1; pointer-events: all; }

  .servers-heading {
    font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 400;
    letter-spacing: 1px; color: rgba(255,255,255,0.7); text-align: center;
    padding: 18px 0 10px; flex-shrink: 0;
  }
  .servers-center {
    width: 520px; max-width: 90vw;
    display: flex; flex-direction: column; flex: 1; overflow: hidden;
  }
  .servers-search {
    width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2px; padding: 6px 10px; color: #fff;
    font-family: 'Exo 2', sans-serif; font-size: 12px; outline: none;
    margin-bottom: 4px; text-align: center;
  }
  .servers-search::placeholder { color: rgba(255,255,255,0.25); }
  .servers-section-label {
    font-family: 'Exo 2', sans-serif; font-size: 10px; color: rgba(255,255,255,0.3);
    letter-spacing: 1px; text-transform: uppercase; padding: 8px 2px 4px;
  }
  .server-list { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }
  .server-list::-webkit-scrollbar { width: 3px; }
  .server-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

  .server-entry {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.07); margin-bottom: 3px;
    cursor: pointer; background: rgba(255,255,255,0.03);
    transition: background 0.15s, border-color 0.15s; position: relative;
  }
  .server-entry:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
  .server-entry.selected { background: rgba(100,160,255,0.1); border-color: rgba(100,160,255,0.25); outline: 1px solid rgba(100,160,255,0.15); }

  .server-check { width: 14px; font-size: 12px; color: #fff; flex-shrink: 0; text-align: center; }
  .server-icon {
    width: 50px; height: 50px; border-radius: 2px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    background: #1a2a1a; border: 1px solid rgba(255,255,255,0.06);
  }
  .server-meta { flex: 1; min-width: 0; }
  .server-name { font-family: 'Exo 2', sans-serif; font-size: 20px; font-weight: 700; color: #0077b7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .server-motd { font-family: 'Exo 2', sans-serif; font-size: 14px; color: rgb(42, 255, 251); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .server-ping { font-family: 'Exo 2', sans-serif; font-size: 13px; color: #4caf50; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
  .ping-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
  .ping-bar { width: 3px; background: #4caf50; border-radius: 1px; }

  .servers-local { padding: 14px 0 6px; text-align: center; }
  .servers-local-text { font-family: 'Exo 2', sans-serif; font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.3px; margin-bottom: 8px; }
  .scan-dots { display: flex; justify-content: center; gap: 6px; }
  .scan-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); animation: scanPulse 1.4s ease-in-out infinite; }
  .scan-dot:nth-child(2) { animation-delay: 0.25s; }
  .scan-dot:nth-child(3) { animation-delay: 0.5s; }
  @keyframes scanPulse {
    0%,80%,100% { background: rgba(255,255,255,0.15); transform: scale(0.85); }
    40% { background: rgba(255,255,255,0.55); transform: scale(1.1); }
  }

  .servers-actions { display: flex; flex-direction: column; gap: 5px; padding: 10px 0 18px; flex-shrink: 0; margin-top: auto; }
  .servers-actions-row { display: flex; gap: 5px; }
  .srv-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 9px 0; flex: 1;
    background: var(--bg-btn); border: 1px solid var(--border); border-radius: 3px;
    color: var(--text-primary); font-family: 'Rajdhani', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
    cursor: pointer; transition: background 0.18s, border-color 0.18s;
    position: relative; overflow: hidden;
  }
  .srv-btn.active:hover { background: var(--bg-btn-hover); border-color: var(--border-hover); }
  .srv-btn::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,0.04); transition: width 0.25s ease; }
  .srv-btn.active:hover::before { width: 100%; }
  .srv-btn.disabled { opacity: 0.32; cursor: default; pointer-events: none; }

    /* Avatar */
  .profile-avatar {
    width: 26px; height: 26px;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px; font-weight: 700; color: #fff;
    flex-shrink: 0;
  }

  /* ═══════════════════════════════════
     INFO PANEL
  ═══════════════════════════════════ */
  .info-panel {
    position: absolute; inset: 0; z-index: 20;
    display: flex; flex-direction: column; align-items: center;
    background: rgba(10,10,10,0.97);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
  }
  .info-panel.open { opacity: 1; pointer-events: all; }

  .info-panel-topbar {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
  }
  .info-panel-title {
    font-family: 'Bebas Neue', sans-serif; font-size: 18px;
    letter-spacing: 5px; color: #fff;
  }

  .info-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 28px 32px 40px;
    width: 100%;
    max-width: 1100px;
  }

  /* Category section — wraps a heading + one row of cards */
  .info-category {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Category heading */
  .info-category-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* Each row: always 3 columns, cards stretch to match the tallest */
  .info-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
  }

  .info-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 6px;
    padding: 24px 22px; display: flex; flex-direction: column; gap: 12px;
    transition: border-color 0.2s;
  }
  .info-card:hover { border-color: rgba(255,255,255,0.14); }
  .info-card-icon {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; margin-bottom: 4px;
  }
  .info-card-icon svg { width: 20px; height: 20px; color: rgba(255,255,255,0.7); }

  .info-card-title {
    font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700;
    color: #fff; letter-spacing: 0.5px;
  }
  .info-card-subtitle {
    font-family: 'Exo 2', sans-serif; font-size: 11.5px;
    color: rgba(255,255,255,0.35); line-height: 1.5; margin-top: -6px;
  }
  .info-card-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 2px 0; }
  .info-card-body {
    font-family: 'Exo 2', sans-serif; font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.75); line-height: 1.7;
  }
  .info-card-label {
    font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.3); margin-top: 6px; margin-bottom: 2px;
  }
  .info-card-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
  .info-card-list li {
    font-family: 'Exo 2', sans-serif; font-size: 12px;
    color: rgba(255,255,255,0.55); padding-left: 14px; position: relative; line-height: 1.5;
  }
  .info-card-list li::before { content: '•'; position: absolute; left: 0; color: rgba(255,255,255,0.25); }

  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  /* ── Semantic element resets — keep visual identical ── */
  h1.logo-wordmark {
    margin: 0;
    font-size: 60px;
    font-weight: inherit;
    line-height: inherit;
  }
  h2.info-panel-title {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
  }
  h3.info-category-heading { margin: 0; }
  h4.info-card-title { margin: 0; }
  p.info-card-subtitle, p.info-card-body { margin: 0; }
  nav.menu { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 300px; }
  header.topbar { position: absolute; top: 0; left: 0; right: 0; }
  footer.footer { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-muted); letter-spacing: 0.3px; z-index: 10; white-space: nowrap; text-align: center; }

  /* ── Info panel category layout ── */
  .info-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 32px 40px;
    width: 100%;
    max-width: 1100px;
    overflow-y: auto;
  }

  .info-category {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 0 0;
  }

  /* Separator line between categories */
  .info-category + .info-category {
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .info-category-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
    padding-bottom: 10px;
  }

  .info-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
    padding-bottom: 28px;
  }

  /* ── Info panel scrollbar ── */
  .info-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
  }
  .info-panel::-webkit-scrollbar {
    width: 6px;
  }
  .info-panel::-webkit-scrollbar-track {
    background: transparent;
  }
  .info-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    transition: background 0.2s;
  }
  .info-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
  }