 .modal-backdrop {
     position: fixed;
     inset: 0;
     z-index: 1050;
     background: rgba(0, 0, 0, 0.45);
     backdrop-filter: blur(3px);
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 16px;
     animation: backdrop-in 0.18s ease;
     opacity: 1;
     pointer-events: auto;
 }

 @keyframes backdrop-in {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 /* ── Modal Box ────────────────────────────────────────────────── */
 .modal-box {
     background: #fff;
     border-radius: 16px;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
     width: 100%;
     display: flex;
     flex-direction: column;
     animation: modal-in 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
     overflow: hidden;
 }

 .modal-box--sm {
     max-width: 460px;
 }

 .modal-box--md {
     max-width: 600px;
 }

 @keyframes modal-in {
     from {
         opacity: 0;
         transform: scale(0.93) translateY(10px);
     }

     to {
         opacity: 1;
         transform: scale(1) translateY(0);
     }
 }

 /* ── Header ───────────────────────────────────────────────────── */
 .modal-box__header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 20px 24px 16px;
     border-bottom: 1px solid #f0f0f0;
     gap: 12px;
 }

 .modal-box__title-group {
     display: flex;
     align-items: center;
     gap: 12px;
     min-width: 0;
 }

 .modal-box__title {
     font-size: 16px;
     font-weight: 600;
     color: #111827;
     margin: 0;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .modal-box__close {
     flex-shrink: 0;
     width: 32px;
     height: 32px;
     border-radius: 8px;
     border: none;
     background: #f5f5f5;
     color: #6b7280;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: background 0.15s, color 0.15s;
     font-size: 14px;
 }

 .modal-box__close:hover {
     background: #fee2e2;
     color: #dc2626;
 }

 /* ── Body ─────────────────────────────────────────────────────── */
 .modal-box__body {
     padding: 24px;
     display: flex;
     flex-direction: column;
     gap: 4px;
 }

 /* ── Footer ───────────────────────────────────────────────────── */
 .modal-box__footer {
     display: flex;
     align-items: center;
     justify-content: flex-end;
     gap: 10px;
     padding: 16px 24px 20px;
     border-top: 1px solid #f0f0f0;
 }

 /* ── Settings Icon ────────────────────────────────────────────── */
 .settings-panel__icon {
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }

 .settings-panel__icon--blue {
     background: #eff6ff;
     color: #2563eb;
 }

 .settings-panel__icon--green {
     background: #f0fdf4;
     color: #16a34a;
 }

 .settings-panel__icon--orange {
     background: #fff7ed;
     color: #ea580c;
 }

 /* ── Settings Field ───────────────────────────────────────────── */
 .settings-field {
     display: flex;
     flex-direction: column;
     gap: 6px;
 }

 .settings-field--toggle {
     flex-direction: row;
     align-items: center;
     justify-content: space-between;
     gap: 16px;
     background: #f9fafb;
     border: 1px solid #e5e7eb;
     border-radius: 10px;
     padding: 14px 16px;
 }

 .settings-field__info {
     display: flex;
     flex-direction: column;
     gap: 3px;
     min-width: 0;
 }

 .settings-field__label {
     font-size: 13.5px;
     font-weight: 500;
     color: #111827;
     margin: 0;
     display: flex;
     align-items: center;
     gap: 4px;
 }

 .settings-field__label .req {
     color: #ef4444;
     font-size: 13px;
 }

 .settings-field__hint {
     font-size: 12px;
     color: #6b7280;
     margin: 0;
     line-height: 1.5;
 }

 /* ── Settings Input ───────────────────────────────────────────── */
 .settings-input {
     width: 100%;
     padding: 9px 12px;
     font-size: 13.5px;
     color: #111827;
     background: #fff;
     border: 1px solid #d1d5db;
     border-radius: 8px;
     outline: none;
     transition: border-color 0.15s, box-shadow 0.15s;
     appearance: none;
     -webkit-appearance: none;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
     background-repeat: no-repeat;
     background-position: right 12px center;
     padding-right: 36px;
     cursor: pointer;
 }

 .settings-input:focus {
     border-color: #2563eb;
     box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
 }

 .settings-input.is-invalid {
     border-color: #ef4444;
     box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
 }

 /* ── Toggle Switch ────────────────────────────────────────────── */
 .toggle-switch {
     position: relative;
     display: inline-flex;
     align-items: center;
     cursor: pointer;
     flex-shrink: 0;
 }

 .toggle-switch input[type="checkbox"] {
     position: absolute;
     opacity: 0;
     width: 0;
     height: 0;
 }

 .toggle-switch__track {
     width: 44px;
     height: 24px;
     background: #d1d5db;
     border-radius: 999px;
     transition: background 0.2s ease;
     position: relative;
     display: flex;
     align-items: center;
 }

 .toggle-switch input:checked+.toggle-switch__track {
     background: #2563eb;
 }

 .toggle-switch__thumb {
     position: absolute;
     left: 3px;
     width: 18px;
     height: 18px;
     background: #fff;
     border-radius: 50%;
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
     transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
 }

 .toggle-switch input:checked+.toggle-switch__track .toggle-switch__thumb {
     transform: translateX(20px);
 }

 /* ── Buttons ──────────────────────────────────────────────────── */
 .btn-cancel {
     padding: 8px 18px;
     font-size: 13.5px;
     font-weight: 500;
     color: #374151;
     background: #f3f4f6;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     cursor: pointer;
     transition: background 0.15s, border-color 0.15s;
 }

 .btn-cancel:hover {
     background: #e5e7eb;
     border-color: #d1d5db;
 }

 .btn-settings-save {
     display: inline-flex;
     align-items: center;
     gap: 7px;
     padding: 8px 18px;
     font-size: 13.5px;
     font-weight: 500;
     color: #fff;
     background: #2563eb;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     transition: background 0.15s, opacity 0.15s;
 }

 .btn-settings-save:hover {
     background: #1d4ed8;
 }

 .btn-settings-save:disabled {
     opacity: 0.6;
     cursor: not-allowed;
 }

 /* ── Responsive ───────────────────────────────────────────────── */
 @media (max-width: 480px) {
     .modal-backdrop {
         align-items: flex-end;
         padding: 0;
     }

     .modal-box {
         border-radius: 16px 16px 0 0;
         animation: modal-in-mobile 0.25s cubic-bezier(0.34, 1.1, 0.64, 1);
     }

     @keyframes modal-in-mobile {
         from {
             opacity: 0;
             transform: translateY(40px);
         }

         to {
             opacity: 1;
             transform: translateY(0);
         }
     }

     .modal-box--sm,
     .modal-box--md {
         max-width: 100%;
     }
 }
