/* modals.css
 * Extracted from the original inline <style> block.
 * Load order matters: see the <link> order in index.html.
 */
    /* ================= API SETTINGS MODAL (extracted Tab 1) ================= */
    .modal-overlay {
      position: fixed; inset: 0; z-index: 120;
      display: flex; align-items: center; justify-content: center;
      padding: 1rem;
      background: rgba(2, 4, 10, 0.72);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .modal-overlay.hidden { display: none !important; }
    .modal-card {
      width: 100%; max-width: 46rem; max-height: 92dvh; overflow-y: auto;
      background: rgba(16, 18, 30, 0.9);
      box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
      animation: fadeIn 0.25s ease both;
    }
    .modal-head {
      position: sticky; top: 0; z-index: 2;
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 1rem 1.25rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(16, 18, 30, 0.96);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
    .modal-body { padding: 1.25rem; }
    .modal-close {
      display: inline-grid; place-items: center;
      width: 2.25rem; height: 2.25rem; border-radius: 0.75rem;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.06); color: #cbd5e1;
      font-size: 0.95rem; line-height: 1;
      transition: background 0.2s ease, color 0.2s ease;
    }
    .modal-close:hover { background: rgba(244, 63, 94, 0.22); color: #fecdd3; }

