/* ================================
   BOOKING SAYA
================================ */

.account-booking-section {
    margin-top: 25px;
}

.account-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.account-section-title h2 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 700;
}

.account-section-title p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

.btn-new-booking {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 9px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.booking-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.booking-card {
    display: flex;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
}

.booking-image {
    width: 180px;
    min-width: 180px;
}

.booking-image img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: block;
    object-fit: cover;
}

.booking-content {
    flex: 1;
    min-width: 0;
    padding: 17px 19px;
}

.booking-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.booking-top small {
    display: block;
    margin-bottom: 3px;
    color: #999;
    font-size: 9px;
}

.booking-top strong {
    font-size: 12px;
}

.booking-status {
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.booking-status.verified {
    background: #e8f8ef;
    color: #159447;
}

.booking-status.pending {
    background: #fff5df;
    color: #b77900;
}

.booking-status.rejected {
    background: #ffe9e9;
    color: #d63031;
}

.booking-status.unpaid {
    background: #f1f3f5;
    color: #777;
}

.booking-content h3 {
    margin: 11px 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.booking-route {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #555;
    font-size: 12px;
}

.booking-route i {
    color: #aaa;
}

.booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 13px;
    color: #777;
    font-size: 11px;
}

.booking-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.booking-meta i {
    color: #999;
}

.booking-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f1f3;
}

.booking-bottom small {
    display: block;
    margin-bottom: 3px;
    color: #999;
    font-size: 9px;
}

.booking-bottom strong {
    font-size: 14px;
}

/* =========================================
   BUTTON DETAIL + CANCEL
========================================= */

.booking-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.booking-buttons .btn-detail,
.booking-buttons .btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-width: 120px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}

.booking-buttons .btn-detail {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.booking-buttons .btn-detail:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.booking-buttons .btn-cancel {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.booking-buttons .btn-cancel:hover {
    background: #ffe4e6;
    color: #be123c;
}

.booking-buttons .btn-detail i {
    margin-left: 6px;
}

.booking-buttons .btn-cancel i {
    margin-right: 6px;
}

.booking-buttons form {
    display: flex;
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
}

/* =========================================
   EMPTY BOOKING
========================================= */

.empty-booking {
    padding: 45px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
}

.empty-booking > i {
    display: block;
    margin-bottom: 10px;
    color: #bbb;
    font-size: 34px;
}

.empty-booking strong {
    display: block;
    font-size: 16px;
}

.empty-booking p {
    margin: 6px 0 16px;
    color: #888;
    font-size: 12px;
}

.empty-booking a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

/* =========================================
   ACCOUNT ACTIONS
========================================= */

.account-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-account {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: .2s ease;
}

.btn-account i {
    font-size: 14px;
}

.btn-account.logout {
    color: #f1f1ef;
}

/* =========================================
   ALERT PEMBAYARAN BERHASIL
========================================= */

.payment-success-alert {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 16px;
    box-sizing: border-box;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}

.payment-success-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 17px;
    box-shadow: 0 4px 10px rgba(22, 163, 74, .2);
}

.payment-success-content {
    flex: 1;
    min-width: 0;
}

.payment-success-content strong {
    display: block;
    margin-bottom: 4px;
    color: #166534;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.payment-success-content p {
    margin: 0;
    color: #4b6353;
    font-size: 12px;
    line-height: 1.55;
}

.payment-success-content p strong {
    display: inline;
    margin: 0;
    color: #15803d;
    font-size: inherit;
}

.payment-success-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    transition: .2s ease;
}

.payment-success-close:hover {
    background: rgba(22, 101, 52, .08);
    color: #166534;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {

    .booking-image {
        width: 150px;
        min-width: 150px;
    }

    .booking-content {
        padding: 15px;
    }

    .booking-content h3 {
        font-size: 16px;
    }

    .booking-meta {
        gap: 10px;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .account-booking-section {
        margin-top: 20px;
    }

    .account-section-title {
        align-items: flex-start;
        gap: 8px;
    }

    .account-section-title h2 {
        font-size: 19px;
    }

    .account-section-title p {
        font-size: 11px;
    }

    .btn-new-booking {
        padding: 8px 10px;
        font-size: 10px;
        white-space: nowrap;
    }

    /* =====================================
       BOOKING LIST - 2 GRID
    ===================================== */

    .booking-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* =====================================
       BOOKING CARD
    ===================================== */

    .booking-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        border-radius: 11px;
    }

    /* =====================================
       IMAGE
    ===================================== */

    .booking-image {
        width: 100%;
        min-width: 0;
        height: 115px;
    }

    .booking-image img {
        width: 100%;
        height: 115px;
        min-height: 0;
        object-fit: cover;
    }

    /* =====================================
       CONTENT
    ===================================== */

    .booking-content {
        width: 100%;
        min-width: 0;
        padding: 11px;
        box-sizing: border-box;
    }

    .booking-top {
        align-items: flex-start;
        gap: 5px;
    }

    .booking-top small {
        font-size: 8px;
    }

    .booking-top strong {
        display: block;
        max-width: 100%;
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .booking-status {
        flex-shrink: 0;
        padding: 4px 6px;
        font-size: 7px;
    }

    .booking-content h3 {
        margin: 9px 0 5px;
        font-size: 14px;
        line-height: 1.3;
    }

    .booking-route {
        gap: 6px;
        font-size: 10px;
        flex-wrap: nowrap;
    }

    .booking-route span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .booking-meta {
        gap: 6px;
        margin-top: 10px;
        font-size: 9px;
    }

    .booking-meta span {
        min-width: 0;
        gap: 4px;
    }

    .booking-meta span i {
        flex-shrink: 0;
    }

    /* =====================================
       BOTTOM
    ===================================== */

    .booking-bottom {
        display: block;
        margin-top: 10px;
        padding-top: 10px;
    }

    .booking-bottom small {
        font-size: 8px;
    }

    .booking-bottom strong {
        font-size: 12px;
    }

    /* =====================================
       BUTTON - SELALU 1 BARIS
    ===================================== */

    .booking-buttons {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        gap: 5px;
        margin-top: 9px;
    }

    .booking-buttons form {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
        width: 50%;
    }

    .booking-buttons .btn-detail,
    .booking-buttons .btn-cancel {
        flex: 1 1 0;
        width: 100%;
        min-width: 0;
        height: 32px;
        padding: 0 4px;
        border-radius: 7px;
        font-size: 9px;
        white-space: nowrap;
    }

    .booking-buttons .btn-detail i,
    .booking-buttons .btn-cancel i {
        font-size: 9px;
    }

    .booking-buttons .btn-detail i {
        margin-left: 4px;
    }

    .booking-buttons .btn-cancel i {
        margin-right: 4px;
    }

    /* =====================================
       EMPTY
    ===================================== */

    .empty-booking {
        grid-column: 1 / -1;
        padding: 40px 15px;
        border-radius: 11px;
    }

    .empty-booking > i {
        font-size: 32px;
    }

    .empty-booking strong {
        font-size: 15px;
    }

    .empty-booking p {
        font-size: 11px;
    }

    /* =====================================
       ACCOUNT ACTIONS
    ===================================== */

    .account-actions {
        gap: 6px;
    }

    .btn-account {
        padding: 10px 5px;
        font-size: 11px;
        gap: 4px;
        border-radius: 8px;
    }

    .btn-account i {
        font-size: 13px;
    }

    /* =====================================
       PAYMENT SUCCESS
    ===================================== */

    .payment-success-alert {
        gap: 10px;
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 11px;
    }

    .payment-success-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 15px;
    }

    .payment-success-content strong {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .payment-success-content p {
        font-size: 11px;
        line-height: 1.5;
    }

    .payment-success-close {
        width: 25px;
        height: 25px;
        min-width: 25px;
        font-size: 11px;
    }

}

/* =========================================
   HP SANGAT KECIL
========================================= */

@media (max-width: 400px) {

    .booking-list {
        gap: 8px;
    }

    .booking-content {
        padding: 9px;
    }

    .booking-image,
    .booking-image img {
        height: 105px;
    }

    .booking-status {
        font-size: 6.5px;
        padding: 3px 5px;
    }

    .booking-content h3 {
        font-size: 13px;
    }

    .booking-route {
        font-size: 9px;
    }

    .booking-meta {
        font-size: 8px;
        gap: 5px;
    }

    .booking-buttons {
        gap: 4px;
    }

    .booking-buttons .btn-detail,
    .booking-buttons .btn-cancel {
        height: 30px;
        font-size: 8px;
        padding: 0 3px;
    }

    .booking-buttons .btn-detail i,
    .booking-buttons .btn-cancel i {
        font-size: 8px;
    }

}

.cancel-success-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 10px;
    color: #166534;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.cancel-success-alert > i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 18px;
}

.cancel-success-alert > div {
    flex: 1;
    min-width: 0;
}

.cancel-success-alert strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 3px;
}

.cancel-success-alert p {
    margin: 0;
    font-size: 13px;
    color: #4b7c5b;
    line-height: 1.5;
}

.cancel-success-alert .alert-close {
    border: 0;
    background: transparent;
    color: #86a98f;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.cancel-success-alert .alert-close:hover {
    background: #dcfce7;
    color: #166534;
}