/* Buyer order pages — QubePlay dark gold */

.order-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 96px;
}

.order-back {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255, 215, 0, 0.85);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.order-back:hover {
    color: #ffd700;
}

.order-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

.order-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.order-hero__date {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.order-hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.order-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
}

.order-status--unpaid,
.order-status--pending {
    color: #f0c14b;
    border-color: rgba(240, 193, 75, 0.4);
    background: rgba(240, 193, 75, 0.08);
}

.order-status--paid,
.order-status--delivered {
    background: rgba(255, 215, 0, 0.18);
    color: #0a0704;
    border-color: #ffd700;
}

.order-status--processing,
.order-status--shipped {
    color: #9ad0ff;
    border-color: rgba(154, 208, 255, 0.4);
    background: rgba(80, 140, 220, 0.12);
}

.order-status--cancelled {
    color: #ff8a8a;
    border-color: rgba(255, 138, 138, 0.4);
    background: rgba(255, 80, 80, 0.12);
}

.order-banner {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.18);
    background: rgba(255, 215, 0, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.order-banner--ready {
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.order-banner--cancel {
    border-color: rgba(255, 138, 138, 0.35);
    background: rgba(255, 80, 80, 0.1);
    color: #ffb0b0;
}

.order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0a0704 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.order-btn:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.order-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #ffd700 !important;
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
    gap: 20px;
}

.order-card {
    background: #0d0a07;
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.order-card h2 {
    margin: 0 0 16px;
    color: #ffd700;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.order-lines {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-line {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px 16px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.order-line--playable {
    cursor: pointer;
}

.order-line--playable:hover,
.order-line.is-current {
    background: rgba(255, 215, 0, 0.06);
}

.order-line__cover-wrap {
    position: relative;
    width: 72px;
    height: 72px;
}

.order-line__cover {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.12);
    background: #1a140f;
    display: block;
}

.order-line__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(10, 7, 4, 0.45);
    color: #0a0704;
}

.order-line__play::after {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffd700;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

.order-line__play-icon {
    position: absolute;
    z-index: 1;
    font-size: 12px;
}

.order-line__play-icon--play {
    margin-left: 2px;
}

.order-line__play-icon--pause {
    display: none;
}

.order-line.is-playing .order-line__play-icon--play {
    display: none;
}

.order-line.is-playing .order-line__play-icon--pause {
    display: inline-block;
}

.order-line__info h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 15px;
}

.order-line__kind,
.order-line__qty,
.order-line__note {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.order-line__total {
    color: #ffd700;
    font-weight: 700;
    white-space: nowrap;
}

.order-line__note--full {
    grid-column: 1 / -1;
}

.order-dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.order-dl dt {
    color: rgba(255, 255, 255, 0.5);
}

.order-dl dd {
    margin: 0;
    color: #fff;
    text-align: right;
}

.order-dl__total {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.12);
}

.order-dl__total dt,
.order-dl__total dd {
    color: #ffd700;
    font-weight: 700;
}

.order-ship {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

.order-empty {
    text-align: center;
    padding: 80px 16px;
    color: rgba(255, 255, 255, 0.7);
}

.order-empty h1 {
    color: #fff;
}

.orders-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 96px;
}

.orders-page h1 {
    margin: 0 0 24px;
    color: #fff;
    font-size: 28px;
}

.orders-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    margin-bottom: 10px;
    background: #0d0a07;
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
}

.orders-row:hover {
    border-color: rgba(255, 215, 0, 0.35);
}

.orders-row strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.orders-row > div span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.orders-row__total {
    color: #ffd700 !important;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-hero {
        flex-direction: column;
    }

    .order-line {
        grid-template-columns: 64px 1fr;
    }

    .order-line__cover-wrap,
    .order-line__cover {
        width: 64px;
        height: 64px;
    }

    .order-line__total {
        grid-column: 2;
    }

    .orders-row {
        grid-template-columns: 1fr auto;
    }

    .orders-row__total {
        grid-column: 1 / -1;
    }
}
