/* ============================================================
   modals.css — PLAY MY v8.5.0
   Modais, toasts, overlay, PWA.
   ============================================================ */
/* ============ MODAIS ============ */

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 100000; opacity: 0; visibility: hidden; transition: all 0.3s; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--apple-bg-elevated); border: 0.5px solid var(--apple-separator); border-radius: var(--radius-xl); width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; transform: translateY(20px) scale(0.96); transition: transform 0.35s; }
.modal-overlay.show .modal-content { transform: translateY(0) scale(1); }
.modal-header { padding: 20px 24px; border-bottom: 0.5px solid var(--apple-separator); display: flex; justify-content: space-between; align-items: center; }
.modal-title { color: var(--apple-label); font-weight: 700; font-size: 18px; margin: 0; }
.modal-body { padding: 24px; }
.modal-footer { padding: 20px 24px; border-top: 0.5px solid var(--apple-separator); display: flex; justify-content: flex-end; gap: 12px; }
.modal-close { background: var(--apple-gray-5); border: none; color: var(--apple-label-2); cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ============ TOASTS ============ */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 1300; max-width: 360px; }
.toast { background: rgba(28, 28, 30, 0.95); border: 0.5px solid var(--apple-separator); border-radius: var(--radius-lg); padding: 14px 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; transform: translateX(120%); opacity: 0; transition: all 0.4s; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-color: rgba(52, 199, 89, 0.5); }
.toast.error { border-color: rgba(255, 59, 48, 0.5); }
.toast.warning { border-color: rgba(255, 204, 0, 0.5); }
.toast.info { border-color: rgba(90, 200, 250, 0.5); }
.toast-icon { font-size: 18px; }
.toast.success .toast-icon { color: var(--apple-green); }
.toast.error .toast-icon { color: var(--apple-red); }
.toast.warning .toast-icon { color: var(--apple-yellow); }
.toast.info .toast-icon { color: var(--apple-teal); }
.toast-message { flex: 1; color: var(--apple-label); font-size: 14px; font-weight: 500; }

/* ============ PWA / INSTALL ============ */
.btn-install { background: var(--apple-green); border: none; border-radius: var(--radius-pill); color: #fff; font-weight: 600; padding: 6px 14px; font-size: 12px; cursor: pointer; align-items: center; gap: 6px; display: none; }
.btn-install:hover { background: var(--apple-green-light); }
