.purchase-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(51, 65, 85, 0.72);
    background: rgba(7, 17, 31, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.purchase-shell {
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto;
}

.purchase-card {
    border-radius: 18px;
}

.purchase-table-wrap {
    overflow-x: auto;
    scrollbar-gutter: stable;
}

.purchase-table {
    min-width: 940px;
}

.purchase-table th,
.purchase-table td {
    padding: 13px 16px;
    vertical-align: middle;
}

.purchase-table tbody tr {
    border-top: 1px solid rgba(51, 65, 85, 0.56);
}

.purchase-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.26);
}

.purchase-file-input::file-selector-button {
    margin-right: 12px;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.34);
    cursor: pointer;
}

.purchase-file-input::file-selector-button:hover {
    background: rgba(37, 99, 235, 0.52);
}

.purchase-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(96, 165, 250, 0.2);
    border-top-color: #60a5fa;
    border-radius: 999px;
    animation: purchase-spin 0.8s linear infinite;
}

.download-progress {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 11000;
    width: min(420px, calc(100vw - 32px));
    transform: translateX(-50%);
}

@keyframes purchase-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .purchase-shell {
        width: min(100% - 20px, 1500px);
    }

    .purchase-card {
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .purchase-spinner {
        animation: none;
    }
}
