
  /* Popup overlay */
  .popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }
  .popup-overlay.active { display: flex; }
  .popup-card {
    background: white;
    border-radius: 1.5rem;
    max-width: 42rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  }
  .close-btn {
    position: sticky;
    top: 0;
    float: right;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
  }
  .close-btn:hover { background: #b91c1c; }

  /* VIP badges */
  .vip-slash {
    position: absolute;
    top: 90px;
    right: -10px;
    background: linear-gradient(135deg, #ffd700, #ff9800);
    padding: 8px 40px;
    transform: rotate(35deg);
    font-weight: 800;
    font-size: 14px;
    color: #111;
    letter-spacing: 2px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.7);
  }
  .vip-mid {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffd700, #ff9800);
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 900;
    color: #111;
    letter-spacing: 2px;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 200, 0, 0.75);
  }

  /* Status badges */
  .status-ready { color: #16a34a; font-weight: bold; }
  .status-offline { color: #dc2626; font-weight: bold; }

  /* Loading overlay */
  #loadingOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  #loadingOverlay.active { display: flex; }
  .spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Step containers */
  .step { display: none; }
  .step.active { display: block; }
