body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container { max-width: 500px; }

.payment-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

.card-header-custom {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    padding: 20px;
    text-align: center;
}

.amount-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc3545;
}

.qr-area img {
    max-width: 280px;
    width: 100%;
}

.code-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: #d63384;
    letter-spacing: 1px;
}

.dashed-border {
    border-style: dashed !important;
}

.blink { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0.5; } }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hidden { display: none !important; }
.loading-box { padding: 50px; }
/* ============================================================ */
/* ĐỘI MÀU MỚI CHO THẺ THÀNH CÔNG - MOBILE OPTIMIZED */
/* ============================================================ */

/* Header chung */
.success-header h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* 1. Thiết kế Thẻ tổng quan (Mobile First) */
.order-info-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 2px solid #0d6efd; /* Màu Primary */
    max-width: 320px; /* Ép thẻ luôn gọn trên mọi màn hình */
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
}

/* 2. Phần đầu thẻ (Logo, Title) */
.card-top {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.rve-logo {
    height: 35px; /* Giảm kích thước Logo cho mobile */
    max-width: 100%;
    object-fit: contain;
}

/* 3. Phần chi tiết thông tin (Phone, Code) */
.card-details .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* highlight mã Code */
.card-details .info-row.highlight {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-bottom: 0;
}

.card-details .label {
    color: var(--bs-secondary);
    font-size: 0.85rem;
}

.card-details .value {
    font-weight: 700;
    color: var(--bs-dark);
    font-size: 1rem;
}

/* Định dạng mã Code Đỏ, rực rỡ */
.card-details .value.code {
    color: var(--bs-danger);
    font-size: 1.25rem;
    letter-spacing: 2px;
}

/* 4. Phần QR Code */
.qr-img {
    width: 120px; /* Giảm QR size */
    height: 120px;
    padding: 5px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* 5. Phần cảnh báo màu vàng */
.card-warning {
    background-color: #fffbeb;
    border-top: 1px solid #fde68a;
    color: #b45309;
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: left;
}

/* ------------------------------------------------ */
/* Responsive cho các màn hình siêu nhỏ (< 360px) */
/* ------------------------------------------------ */
@media (max-width: 360px) {
    .order-info-card {
        max-width: 100%; /* Giãn ra 100% nhưng phải chừa lề */
        margin-left: 10px;
        margin-right: 10px;
    }
    .card-details .value.code {
        font-size: 1.1rem; /* Giảm size Code xíu để không tràn */
    }
}