/* Download your data — pricing-plans section */

#download-your-data,
#downloadYourDataSection {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.data-export-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 95, 156, 0.08);
    padding: 28px 28px 12px;
}

.data-export-card__header {
    margin-bottom: 8px;
}

.data-export-card__header h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.data-export-card__header p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 52rem;
}

.data-export-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.data-export-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 20px 0;
    border-top: 1px solid #eef2f7;
}

.data-export-row:first-child {
    border-top: none;
}

.data-export-row__info {
    flex: 1 1 240px;
    min-width: 0;
}

.data-export-row__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #005F9C;
}

.data-export-row__desc {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.data-export-row__note--hard-stop {
    color: #475569;
    max-width: 22rem;
    line-height: 1.45;
}

.data-export-row__busy--long {
    align-items: flex-start;
    max-width: 22rem;
    line-height: 1.45;
}

.data-export-row__busy--long .fa-spinner {
    margin-top: 0.2em;
}

.data-export-row__actions {
    flex: 0 1 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.data-export-btn {
    min-width: 140px;
}

.data-export-row__actions .btn,
.data-export-confirm-modal .btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
}

.data-export-row__actions .btn-primary,
.data-export-confirm-modal .btn-primary {
    background: linear-gradient(90deg, #005F9C 60%, #3a7ea8 100%);
    color: #fff;
}

.data-export-row__actions .btn-secondary,
.data-export-confirm-modal .btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.data-export-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.data-export-row__busy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #005F9C;
    font-weight: 600;
    font-size: 0.95rem;
}

.data-export-row__note {
    margin: 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

.data-export-row__error {
    margin: 0;
    font-size: 0.9rem;
    color: #b45309;
    line-height: 1.45;
}

/* Caution warning (matches profile .limit-warning) */
.data-export-confirm-warning.limit-warning,
#download-your-data .limit-warning,
#downloadYourDataSection .limit-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 12px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #856404;
}

.data-export-confirm-warning.limit-warning i {
    color: #ffc107;
    font-size: 14px;
    flex-shrink: 0;
}

/* Confirm modal (cancel-subscription pattern, caution not danger) */
.data-export-confirm-modal.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.data-export-confirm-modal.modal-backdrop.active {
    display: flex;
}

.data-export-confirm-modal__dialog {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1.5px solid #e3e7ee;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
}

.data-export-confirm-content {
    padding: 28px 28px 8px;
    text-align: center;
}

.data-export-confirm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.35);
}

.data-export-confirm-content h4 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: #0f172a;
}

.data-export-confirm-content > p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: left;
}

.data-export-confirm-modal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px 22px;
}

/* Toast notifications (profile-style, self-contained) */
.data-export-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100001;
    max-width: 400px;
    width: calc(100vw - 32px);
    animation: data-export-toast-in 0.25s ease;
}

.data-export-notification__inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
    border-left: 4px solid #3b82f6;
    padding: 14px 36px 14px 16px;
}

.data-export-notification--success .data-export-notification__inner {
    border-left-color: #10b981;
}

.data-export-notification--error .data-export-notification__inner {
    border-left-color: #ef4444;
}

.data-export-notification--warning .data-export-notification__inner {
    border-left-color: #f59e0b;
}

.data-export-notification__title {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.data-export-notification__message {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
    font-weight: 500;
}

.data-export-notification__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}

@keyframes data-export-toast-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .data-export-row__actions {
        flex-basis: 100%;
    }

    .data-export-btn {
        width: 100%;
    }
}
