.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease-in-out;
  }
  
  .popup-overlay.show {
    display: flex;
  }
  
  .popup-content {
    max-width: 90%;
    max-height: 85%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    animation: fadeIn 0.2s ease-in-out;
  }
  
  .popup-header {
    background: #fafafa;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 600;
    color: #111;
    border-bottom: 1px solid #eee;
  }
  
  .popup-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    padding: 4px;
  }
  
  .popup-content iframe {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
  }
  
  .popup-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid #eee;
  }
  
  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
  }
  
  .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #007aff; /* iOS Blue */
    cursor: pointer;
  }
  
  @keyframes fadeIn {
    from { transform: scale(0.98); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
