    /* ===== Modal Container ===== */
    .error-modal {
      position: fixed;
      inset: 0;
      z-index: 9999;

      display: flex;
      align-items: center;
      justify-content: center;

      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease;
    }

    .error-modal.show {
      opacity: 1;
      visibility: visible;
    }

    /* ===== Overlay ===== */
    #errorOverlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);

      opacity: 0;
      transition: opacity 0.25s ease;
    }

    .error-modal.show #errorOverlay {
      opacity: 1;
    }

    /* ===== Modal Box ===== */
    .error-modal-box {
      position: relative;
      z-index: 2;

      width: 90%;
      max-width: 340px;

      background: #fff;
      border-radius: 22px;
      padding: 24px 18px;
      text-align: center;

      box-shadow:
        0 25px 60px rgba(0,0,0,0.25),
        0 5px 20px rgba(0,0,0,0.1);

      transform: translateY(30px) scale(0.95);
      opacity: 0;

      transition: all 0.25s ease;
    }

    .error-modal.show .error-modal-box {
      transform: translateY(0) scale(1);
      opacity: 1;
    }

    /* ===== Close ===== */
    .error-close {
      position: absolute;
      top: 10px;
      right: 12px;
      border: none;
      background: none;
      font-size: 18px;
      color: #999;
      cursor: pointer;
    }

    /* ===== Icon ===== */
    .error-icon {
      width: 64px;
      height: 64px;
      margin: 0 auto 12px;

      border-radius: 50%;
      background: radial-gradient(circle, #ffe5e5, #ffd6d6);

      display: flex;
      align-items: center;
      justify-content: center;

      font-size: 26px;
    }

    /* ===== Text ===== */
    .error-modal-box h3 {
      font-size: 20px;
      font-weight: 700;
      color: #111;
    }

    .error-modal-box p {
      font-size: 14px;
      color: #6b7280;
      margin-top: 6px;
    }

    /* ===== Divider ===== */
    .error-divider {
      height: 1px;
      background: #e5e7eb;
      margin: 16px 0;
    }

    /* ===== Button ===== */
    .error-btn {
      width: 100%;
      margin-top: 12px;
      padding: 12px;

      border-radius: 12px;
      border: none;

      background: #f54a00;
      color: white;

      font-size: 15px;
      font-weight: 600;

      transition: 0.2s ease;
    }

    .error-btn:hover {
      background: #d63e00;
    }