/* ===============================
   BUXNESIA INVOICE PAGE
================================ */

.invoice-page {
    position: relative;
    overflow: hidden;

    max-width: 780px;
    margin: 42px auto;
    padding: 26px;

    color: #e5e7eb;

    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 30px;

    box-shadow:
        0 28px 90px rgba(0,0,0,.42),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.invoice-page::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background: rgba(34,211,238,.12);
    filter: blur(34px);

    pointer-events: none;
}

/* ===============================
   HEADER
================================ */

.invoice-header {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    padding-bottom: 20px;
    margin-bottom: 22px;

    border-bottom: 1px solid rgba(255,255,255,.10);
}

.invoice-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 24px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.invoice-header p {
    margin: 6px 0 0;

    color: #94a3b8;
    font-size: 13px;
}

/* ===============================
   STATUS BADGE
================================ */

.status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.status span {
    padding: 8px 14px;

    border-radius: 999px;

    color: #07111f;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;

    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.status .waiting_payment {
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.status .pending {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    color: #ffffff;
}

.status .processing {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #ffffff;
}

.status .success,
.status .completed,
.status .paid {
    background: linear-gradient(135deg, #34d399, #22c55e);
}

.status .failed,
.status .cancelled,
.status .expired {
    background: linear-gradient(135deg, #fb7185, #ef4444);
    color: #ffffff;
}

/* ===============================
   BOX
================================ */

.invoice-box {
    position: relative;
    z-index: 1;

    margin-bottom: 18px;
    padding: 20px;

    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 24px;

    box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.invoice-box h3 {
    margin: 0 0 16px;
    padding-bottom: 10px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 900;

    border-bottom: 1px solid rgba(255,255,255,.10);
}

.invoice-box strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.invoice-box p {
    margin: 6px 0;

    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
}

/* ===============================
   USER BOX
================================ */

.user-box {
    display: flex;
    align-items: center;
    gap: 16px;

    background:
        linear-gradient(135deg, rgba(34,211,238,.09), rgba(139,92,246,.08));
}

.user-box img {
    width: 70px;
    height: 70px;

    object-fit: cover;
    flex-shrink: 0;

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.13);

    background: rgba(255,255,255,.08);
}

.user-box strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.user-box p,
.user-info p {
    margin: 5px 0;

    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;

    word-break: break-word;
}

/* ===============================
   TABLE
================================ */

.invoice-box table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-box td {
    padding: 11px 0;

    color: #cbd5e1;
    font-size: 14px;
}

.invoice-box td:first-child {
    color: #94a3b8;
}

.invoice-box td:last-child {
    text-align: right;

    color: #ffffff;
    font-weight: 800;
}

.invoice-box .total td {
    padding-top: 16px;

    border-top: 1px dashed rgba(255,255,255,.16);

    color: #22d3ee;
    font-size: 18px;
    font-weight: 950;
}

/* ===============================
   PAYMENT GENERAL
================================ */

.payment-box {
    background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
}

.pay-wrapper {
    margin-top: 12px;
    padding: 16px;

    background: rgba(3,7,18,.26);

    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 20px;
}

.pay-info strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.pay-info p {
    margin: 6px 0 0;

    color: #94a3b8;
    font-size: 13px;
}

/* ===============================
   QRIS
================================ */

.pay-qr {
    margin-top: 16px;

    display: flex;
    justify-content: center;
}

.pay-qr img {
    width: 190px;
    height: 190px;

    padding: 12px;

    background: #ffffff;
    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.32),
        0 0 28px rgba(34,211,238,.12);
}

/* ===============================
   VA / RETAIL BOX
================================ */

.va-box,
.retail-box {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.va-box input,
.retail-box input {
    flex: 1;
    min-width: 0;

    height: 46px;
    padding: 0 13px;

    color: #ffffff;
    background: rgba(255,255,255,.055);

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

.va-box button,
.retail-box button {
    min-width: 92px;
    padding: 0 16px;

    border: none;
    border-radius: 15px;

    color: #07111f;
    background: linear-gradient(135deg, #22d3ee, #facc15);

    font-weight: 900;
    cursor: pointer;

    transition: .25s ease;
}

.va-box button:hover,
.retail-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(34,211,238,.18);
}

/* ===============================
   PAYMENT BUTTON
================================ */

.pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 16px;
    min-height: 46px;
    padding: 12px 20px;

    border-radius: 16px;

    color: #07111f;
    background: linear-gradient(135deg, #22d3ee, #facc15);

    font-weight: 900;
    text-decoration: none;
    text-align: center;

    box-shadow: 0 16px 34px rgba(34,211,238,.18);

    transition: .25s ease;
}

.pay-btn:hover {
    transform: translateY(-2px);
}

.pay-btn.secondary {
    color: #ffffff;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

/* ===============================
   NOTE
================================ */

.pay-note {
    margin-top: 12px;

    color: #94a3b8;
    font-size: 13px;
}

.pay-note.success {
    color: #34d399;
}

/* ===============================
   INVOICE COUNTDOWN
================================ */

.invoice-countdown {
    position: relative;
    z-index: 1;

    margin: 16px 0 20px;
    padding: 15px 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    border-radius: 20px;

    background: rgba(250,204,21,.12);
    border: 1px solid rgba(250,204,21,.24);

    color: #facc15;
    font-weight: 800;
}

.countdown-label {
    font-size: 14px;
}

.countdown-time {
    color: #ffffff;
    font-size: 19px;
    font-weight: 950;
    letter-spacing: 1px;
}

.invoice-countdown.warning {
    background: rgba(251,113,133,.12);
    border-color: rgba(251,113,133,.26);
    color: #fb7185;
}

.invoice-countdown.expired {
    background: rgba(148,163,184,.10);
    border-color: rgba(148,163,184,.20);
    color: #94a3b8;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 640px) {
    .invoice-page {
        margin: 24px 14px;
        padding: 18px;
        border-radius: 26px;
    }

    .invoice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .status {
        justify-content: flex-start;
    }

    .invoice-box {
        padding: 18px;
        border-radius: 22px;
    }

    .user-box {
        flex-direction: row !important;
        align-items: flex-start;
        gap: 14px;
    }

    .user-box img {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .invoice-box table,
    .invoice-box tbody,
    .invoice-box tr,
    .invoice-box td {
        display: block;
        width: 100%;
    }

    .invoice-box tr {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .invoice-box tr:last-child {
        border-bottom: none;
    }

    .invoice-box td {
        padding: 2px 0;
    }

    .invoice-box td:last-child {
        text-align: left;
        margin-top: 3px;
    }

    .invoice-box .total td {
        border-top: none;
    }

    .va-box,
    .retail-box {
        flex-direction: column;
    }

    .va-box button,
    .retail-box button {
        width: 100%;
        min-height: 44px;
    }

    .invoice-countdown {
        flex-direction: column;
        align-items: flex-start;
    }
}