/* Overlay background */
    .popup-overlay-main {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 999;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    /* Popup box */
    .popup-main {
      background: #fff;
      max-width: 700px;
      width: 90%;
      padding: 30px 30px;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
      position: relative;
      animation: slideIn 0.5s ease forwards;
      
    }

    .popup-main-inside {
      overflow-y: auto;
      max-height: calc(90vh - 30px);
    }

    .popup-main h2 {
      color: #d9534f;
      font-size: 22px;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .popup-main p {
      font-size: 15px;
      margin-bottom: 12px;
      color: #444;
    }

    .popup-main strong {
      color: #000;
    }

    /* Close button */
    .close-btn {
      position: absolute;
      top: 12px;
      right: 15px;
      background: #d9534f;
      color: #fff;
      border: none;
      font-size: 18px;
      padding: 5px 10px;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s;
    }

    .close-btn:hover {
      background: #c9302c;
    }

    /* Show popup */
    .popup-overlay-main.active {
      opacity: 1;
      visibility: visible;
    }

    /* Animations */
    @keyframes slideIn {
      from { transform: translateY(-40px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    /* Highlight styles */
    .danger { color: #d9534f; font-weight: bold; }
    .info { color: #0275d8; font-weight: bold; }
    .safe { color: #21c283; font-weight: bold; }