/* =======================================================
   SECTION 5 : EXPORT CENTER
======================================================= */
.export-center {
    position: relative;
    padding: 110px 5.5%;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 18%, rgba(46, 196, 255, 0.08), transparent 27%),
        radial-gradient(circle at 12% 88%, rgba(46, 213, 115, 0.06), transparent 28%),
        linear-gradient(180deg, #081827 0%, #07111d 100%);
}
.export-center::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(100, 204, 249, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 204, 249, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    pointer-events: none;
}
.export-center .section-header,
.export-layout,
.generation-log,
.next-actions {
    position: relative;
    z-index: 1;
    width: min(1380px, 100%);
    margin-right: auto;
    margin-left: auto;
}
/* ---------- Export layout ---------- */
.export-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
    align-items: start;
    gap: 24px;
}
.export-files,
.export-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
/* ---------- Export cards ---------- */
.export-card {
    padding: 0;
    overflow: hidden;
}
.export-card::before {
    display: none;
}
.file-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 21px 23px;
    border-bottom: 1px solid rgba(133, 213, 246, 0.13);
    background: rgba(46, 196, 255, 0.035);
}
.file-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: #06131f;
    border-radius: 11px;
    background: linear-gradient(135deg, #75e4ff, #2ec4ff);
    font-family: "Courier New", monospace;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(46, 196, 255, 0.2);
    place-items: center;
}
.export-card:nth-child(2) .file-icon {
    color: #07170f;
    background: linear-gradient(135deg, #8af1b6, #2ed573);
    box-shadow: 0 8px 18px rgba(46, 213, 115, 0.18);
}
.export-card:nth-child(3) .file-icon {
    color: #1d1104;
    background: linear-gradient(135deg, #ffd68b, #ffb142);
    box-shadow: 0 8px 18px rgba(255, 177, 66, 0.18);
}
.file-header h3 {
    margin: 0;
    color: #e8f8ff;
    font-size: 0.94rem;
    font-weight: 600;
}
.file-header small {
    display: block;
    margin-top: 4px;
    color: #85a6b7;
    font-size: 0.7rem;
}
.file-details {
    padding: 19px 23px 14px;
}
.file-details p {
    max-width: 640px;
    margin: 0 0 15px;
    color: #9cbac8;
    font-size: 0.77rem;
    line-height: 1.65;
}
.file-details table {
    width: 100%;
    border-collapse: collapse;
}
.file-details td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(132, 211, 244, 0.09);
    color: #839fac;
    font-size: 0.72rem;
}
.file-details tr:last-child td {
    border-bottom: 0;
}
.file-details td:last-child {
    color: #dff5ff;
    font-weight: 500;
    text-align: right;
}
.file-details tr:first-child td:last-child {
    color: #8cedb6;
}
.export-actions {
    display: flex;
    gap: 10px;
    padding: 0 23px 21px;
}
.export-actions button,
.export-sidebar button {
    min-height: 38px;
    padding: 8px 13px;
    color: #b9d9e7;
    border: 1px solid rgba(138, 212, 245, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.73rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}
.export-actions button:first-child {
    color: #04131e;
    border-color: var(--cyan);
    background: var(--cyan);
}
.export-card:nth-child(2) .export-actions button:first-child {
    border-color: var(--green);
    background: var(--green);
}
.export-card:nth-child(3) .export-actions button:first-child {
    border-color: var(--orange);
    background: var(--orange);
}
.export-actions button:hover,
.export-sidebar button:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: rgba(46, 196, 255, 0.48);
    background: rgba(46, 196, 255, 0.12);
}
.export-actions button:first-child:hover {
    color: #06131f;
    filter: brightness(1.1);
}
/* ---------- Export sidebar ---------- */
.export-sidebar .glass-card {
    padding: 21px;
    border-radius: 13px;
}
.export-sidebar .glass-card h3 {
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.project-table {
    width: 100%;
    border-collapse: collapse;
}
.project-table td {
    padding: 9px 0;
    border-bottom: 1px solid rgba(132, 211, 244, 0.1);
    color: #89a9b9;
    font-size: 0.72rem;
}
.project-table tr:last-child td {
    border-bottom: 0;
}
.project-table td:last-child {
    color: #def4fc;
    font-weight: 500;
    text-align: right;
}
.validation-summary {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.validation-summary li {
    color: #92ecb8;
    font-size: 0.73rem;
    line-height: 1.4;
}
.export-sidebar label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    color: #afcbd8;
    font-size: 0.73rem;
    cursor: pointer;
}
.export-sidebar label:last-child {
    margin-bottom: 0;
}
.export-sidebar input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--cyan);
    cursor: pointer;
}
.export-sidebar .glass-card:last-child {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.export-sidebar .glass-card:last-child h3 {
    margin-bottom: 7px;
}
.export-sidebar .glass-card:last-child button {
    width: 100%;
    text-align: left;
}
/* ---------- Generation log ---------- */
.generation-log {
    margin-top: 26px;
    padding: 0;
    overflow: hidden;
}
.generation-log::before {
    display: none;
}
.generation-log .card-header {
    margin: 0;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(132, 211, 244, 0.13);
    background: rgba(46, 196, 255, 0.035);
}
.generation-log .card-header h3 {
    color: #e7f9ff;
    font-size: 0.92rem;
}
.generation-log .card-header button {
    padding: 6px 10px;
    color: #9fc5d5;
    border: 1px solid rgba(129, 211, 244, 0.17);
    border-radius: 6px;
    background: transparent;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s ease;
}
.generation-log .card-header button:hover {
    color: #ffffff;
    border-color: rgba(46, 196, 255, 0.48);
}
.log-console {
    max-height: 270px;
    padding: 19px 22px;
    overflow: auto;
    background:
        linear-gradient(rgba(46, 196, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 196, 255, 0.025) 1px, transparent 1px),
        #04111b;
    background-size: 24px 24px;
}
.log-console pre {
    margin: 0;
    color: #8edfb1;
    font-family: "Courier New", monospace;
    font-size: 0.74rem;
    line-height: 1.85;
    white-space: pre-wrap;
}
/* ---------- Next actions ---------- */
.next-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.next-actions button {
    min-height: 44px;
    padding: 11px 18px;
    color: #bddbe7;
    border: 1px solid rgba(132, 211, 244, 0.2);
    border-radius: 9px;
    background: rgba(10, 32, 49, 0.72);
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}
.next-actions button:first-child {
    color: #03121c;
    border-color: var(--cyan);
    background: var(--cyan);
}
.next-actions button:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: rgba(46, 196, 255, 0.52);
    background: rgba(46, 196, 255, 0.1);
}
.next-actions button:first-child:hover {
    color: #03121c;
    background: #79e2ff;
    box-shadow: 0 12px 24px rgba(46, 196, 255, 0.22);
}
/* ---------- Responsive export center ---------- */
@media (max-width: 1050px) {
    .export-center {
        padding: 88px 4%;
    }
    .export-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}
@media (max-width: 820px) {
    .export-layout {
        grid-template-columns: 1fr;
    }
    .export-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .export-sidebar .glass-card:last-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    .export-center {
        padding: 72px 22px;
    }
    .export-files,
    .export-sidebar {
        gap: 14px;
    }
    .file-header,
    .file-details,
    .export-actions {
        padding-right: 17px;
        padding-left: 17px;
    }
    .file-header {
        gap: 12px;
        padding-top: 17px;
        padding-bottom: 17px;
    }
    .file-icon {
        flex-basis: 45px;
        width: 45px;
        height: 45px;
        font-size: 0.74rem;
    }
    .export-actions {
        flex-direction: column;
    }
    .export-actions button {
        width: 100%;
    }
    .export-sidebar {
        display: flex;
    }
    .generation-log .card-header,
    .log-console {
        padding-right: 17px;
        padding-left: 17px;
    }
    .log-console pre {
        font-size: 0.67rem;
        line-height: 1.7;
    }
    .next-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .next-actions button {
        width: 100%;
    }
}
