/* ===== MODALS V2 - Premium Design ===== */
/* Based on hub-v2-gold-premium.html prototype */

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== MODAL CONTAINER ===== */
.modal-container {
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* ===== MODAL HEADER ===== */
.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(180deg, rgba(255, 154, 31, 0.08) 0%, transparent 100%);
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.modal-icon.gold {
    background: linear-gradient(135deg, #FF9A1F, #F28C0C);
}

.modal-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.modal-header-text {
    flex: 1;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

/* ===== MODAL BODY ===== */
.modal-body {
    padding: 24px 28px;
}

/* ===== MODAL FOOTER ===== */
.modal-footer {
    padding: 16px 28px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== MODAL BUTTONS ===== */
.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-btn-cancel {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.modal-btn-cancel:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #F28C0C 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 154, 31, 0.35);
}

/* ===== MODAL DIVIDER ===== */
.modal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.modal-divider span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SELECT FOLDER MODAL ===== */
.select-folder-modal {
    max-width: 480px;
}

.folder-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.folder-list-v2::-webkit-scrollbar {
    width: 6px;
}

.folder-list-v2::-webkit-scrollbar-track {
    background: transparent;
}

.folder-list-v2::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.folder-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.folder-list-item:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 154, 31, 0.05);
}

.folder-list-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.folder-list-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.folder-list-icon svg {
    width: 20px;
    height: 20px;
}

.folder-list-icon .folder-emoji {
    font-size: 18px;
    line-height: 1;
}

.folder-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.folder-list-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-list-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-list-count {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.folder-list-create {
    width: 100%;
    padding: 14px 20px;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.folder-list-create svg {
    width: 20px;
    height: 20px;
}

.folder-list-create:hover {
    border-color: var(--accent-gold);
    border-style: solid;
    color: var(--accent-gold);
    background: rgba(255, 154, 31, 0.05);
}

/* ===== MODAL V3 - Notion-Style Two Column Layout ===== */

.modal-container.cf-modal-v3 {
    display: flex;
    max-width: 960px;
    overflow: visible;
}

.cf-modal-v3 .cf-form-side {
    flex: 1;
    min-width: 420px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: visible;
}

.cf-modal-v3 .cf-preview-side {
    width: 460px;
    background: #0f0f0f;
    border-left: 1px solid var(--glass-border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.cf-modal-v3 .cf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cf-modal-v3 .cf-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.cf-modal-v3 .cf-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.cf-modal-v3 .cf-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.cf-modal-v3 .cf-icon-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.cf-modal-v3 .cf-icon-arrow {
    color: var(--text-muted);
    margin-left: auto;
}

/* V3 Color Picker - Dropdown Style */
.cf-modal-v3 .cf-color-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.cf-modal-v3 .cf-color-trigger:hover {
    border-color: var(--border-gold, rgba(255, 215, 0, 0.3));
}

.cf-modal-v3 .cf-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.cf-modal-v3 .cf-color-name {
    font-size: 13px;
    color: var(--text-primary);
    flex: 1;
    text-transform: capitalize;
}

.cf-modal-v3 .cf-color-arrow {
    color: var(--text-muted);
}

.cf-modal-v3 .cf-color-arrow svg {
    width: 16px;
    height: 16px;
}

/* Color Dropdown Popup */
.cf-modal-v3 .cf-color-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.cf-modal-v3 .cf-color-popup.open {
    display: block;
}

.cf-modal-v3 .cf-color-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.cf-modal-v3 .cf-color-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cf-modal-v3 .cf-color-option[data-selected="true"] {
    background: rgba(255, 215, 0, 0.08);
}

.cf-modal-v3 .cf-color-option .cf-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cf-modal-v3 .cf-color-option .cf-color-label {
    font-size: 13px;
    color: var(--text-primary);
    flex: 1;
    text-transform: capitalize;
}

.cf-modal-v3 .cf-color-option .cf-color-check {
    display: none;
    color: var(--accent-gold);
}

.cf-modal-v3 .cf-color-option[data-selected="true"] .cf-color-check {
    display: block;
}

.cf-modal-v3 .cf-color-option .cf-color-check svg {
    width: 16px;
    height: 16px;
}

/* Color values */
.cf-color-dot[data-color="blue"],
.cf-color-swatch[data-color="blue"] { background: linear-gradient(135deg, #00A3FF, #0088DD); }
.cf-color-dot[data-color="green"],
.cf-color-swatch[data-color="green"] { background: linear-gradient(135deg, #00D26A, #00B359); }
.cf-color-dot[data-color="purple"],
.cf-color-swatch[data-color="purple"] { background: linear-gradient(135deg, #9B59B6, #8E44AD); }
.cf-color-dot[data-color="orange"],
.cf-color-swatch[data-color="orange"] { background: linear-gradient(135deg, #FF9A1F, #F28C0C); }
.cf-color-dot[data-color="gold"],
.cf-color-swatch[data-color="gold"] { background: linear-gradient(135deg, #FFE135, #FFD700); }
.cf-color-dot[data-color="red"],
.cf-color-swatch[data-color="red"] { background: linear-gradient(135deg, #FF4757, #E84142); }
.cf-color-dot[data-color="cyan"],
.cf-color-swatch[data-color="cyan"] { background: linear-gradient(135deg, #22D3EE, #06B6D4); }
.cf-color-dot[data-color="pink"],
.cf-color-swatch[data-color="pink"] { background: linear-gradient(135deg, #FF69B4, #FF1493); }

/* V3 Preview Card */
.cf-modal-v3 .cf-preview-card {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.cf-modal-v3 .cf-preview-gradient {
    height: 80px;
    position: relative;
    background: linear-gradient(135deg, var(--folder-color, #00A3FF) 0%, transparent 100%);
    opacity: 0.6;
}

.cf-modal-v3 .cf-preview-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.cf-modal-v3 .cf-preview-icon-float {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: var(--bg-card, rgba(25, 25, 25, 0.9));
    border: 2px solid var(--folder-color, #00A3FF);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: all 0.15s ease;
}

.cf-modal-v3 .cf-preview-icon-float svg {
    width: 24px;
    height: 24px;
    color: white;
}

.cf-modal-v3 .cf-preview-content {
    padding: 40px 20px 20px;
    position: relative;
}

.cf-modal-v3 .cf-preview-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    min-height: 24px;
}

.cf-modal-v3 .cf-preview-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px 0;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cf-modal-v3 .cf-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.cf-modal-v3 .cf-preview-meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.cf-modal-v3 .cf-preview-meta-left svg {
    width: 14px;
    height: 14px;
}


/* V3 Buttons */
.cf-modal-v3 .cf-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}

.cf-modal-v3 .cf-btn-secondary {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cf-modal-v3 .cf-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.cf-modal-v3 .cf-btn-primary {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FFE135 0%, #FFD700 50%, #FFC107 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cf-modal-v3 .cf-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.cf-modal-v3 .cf-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cf-modal-v3 .cf-btn-primary svg {
    width: 18px;
    height: 18px;
}

/* V3 Form Elements */
.cf-modal-v3 .cf-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.cf-modal-v3 .cf-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.cf-modal-v3 .cf-label-optional {
    font-weight: 400;
    color: var(--text-muted);
}

.cf-modal-v3 .cf-input,
.cf-modal-v3 .cf-textarea {
    padding: 12px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.15s ease;
}

.cf-modal-v3 .cf-input:focus,
.cf-modal-v3 .cf-textarea:focus {
    border-color: var(--border-gold, rgba(255, 215, 0, 0.3));
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.08);
}

.cf-modal-v3 .cf-input::placeholder,
.cf-modal-v3 .cf-textarea::placeholder {
    color: var(--text-muted);
}

.cf-modal-v3 .cf-textarea {
    resize: none;
    min-height: 72px;
    line-height: 1.5;
}

/* V3 Preview Label */
.cf-modal-v3 .cf-preview-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* V3 Responsive */
@media (max-width: 900px) {
    .cf-modal-v3 {
        flex-direction: column;
        max-width: 100%;
    }

    .cf-modal-v3 .cf-form-side {
        min-width: auto;
    }

    .cf-modal-v3 .cf-preview-side {
        display: none;
    }
}

/* ===== NOTION-STYLE ICON PICKER (V3) ===== */

/* Icon & Color Row */
.cf-icon-color-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cf-icon-group {
    flex: 1;
}

.cf-color-group {
    flex: 1;
}

/* Icon Picker Trigger - Notion Style */
.cf-icon-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.cf-icon-trigger:hover {
    border-color: var(--border-gold, rgba(255, 215, 0, 0.3));
    background: rgba(255, 255, 255, 0.05);
}

.cf-icon-display {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card, rgba(25, 25, 25, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 18px;
}

.cf-icon-display svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.cf-icon-trigger-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.cf-icon-trigger-arrow {
    color: var(--text-muted);
    margin-left: auto;
}

.cf-icon-trigger-arrow svg {
    width: 16px;
    height: 16px;
}

/* Icon Picker Popup */
.cf-icon-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.cf-icon-popup.open {
    display: block;
}

/* Popup Tabs */
.cf-popup-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
}

.cf-popup-tab {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.cf-popup-tab:hover {
    color: var(--text-secondary);
}

.cf-popup-tab.active {
    color: var(--accent-gold);
}

.cf-popup-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px 2px 0 0;
}

/* Popup Search */
.cf-popup-search {
    padding: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.cf-popup-search input {
    width: 100%;
    padding: 8px 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.cf-popup-search input:focus {
    border-color: var(--border-gold, rgba(255, 215, 0, 0.3));
}

.cf-popup-search input::placeholder {
    color: var(--text-muted);
}

/* Picker Grid */
.cf-popup-grid {
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
}

.cf-popup-grid::-webkit-scrollbar {
    width: 6px;
}

.cf-popup-grid::-webkit-scrollbar-track {
    background: transparent;
}

.cf-popup-grid::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.cf-popup-grid::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.cf-picker-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cf-picker-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cf-picker-item.selected {
    background: rgba(255, 215, 0, 0.08);
    box-shadow: inset 0 0 0 1px var(--border-gold, rgba(255, 215, 0, 0.3));
}

.cf-picker-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.cf-picker-item:hover svg {
    color: var(--text-primary);
}

.cf-picker-item.selected svg {
    color: var(--accent-gold);
}


/* ===== DELETE MODAL ===== */
.delete-modal {
    max-width: 400px;
}

.delete-modal .modal-header {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, transparent 100%);
}

.modal-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.modal-icon.danger svg {
    color: var(--accent-red);
}

.delete-item-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 12px;
}

.delete-item-preview svg {
    color: var(--text-secondary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.delete-item-preview span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.delete-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    margin-bottom: 20px;
}

.delete-warning svg {
    color: var(--accent-red);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.delete-warning span {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-red);
}

.btn-modal-danger {
    padding: 11px 20px;
    background: var(--accent-red);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-modal-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-modal-danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== SPINNING ANIMATION ===== */
.spinning {
    animation: spin 0.8s linear infinite;
}
/* @keyframes spin is defined in variables.css */

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .modal-container {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 16px 20px 20px;
    }

    .cf-modal-v3 .cf-actions {
        flex-direction: column-reverse;
    }

    .cf-modal-v3 .cf-btn-secondary,
    .cf-modal-v3 .cf-btn-primary {
        flex: none;
        width: 100%;
    }
}
