#modal_notify_sales button.close {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 36px;
    z-index: 11;
    color: #ebebeb;
    opacity: 1 !important;
}

.badge_percent {
    background: #ff5a00;
    color: #fff !important;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 14px;
    margin-left: 5px;
    font-weight: 800;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(255, 90, 0, 0.2);
}

.btn-checkout-mini {
    display: inline-block;
    background: linear-gradient(135deg, #e53935 0%, #ff7043 100%);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
    transition: all 0.3s ease;
    border: none;
    margin-top: 5px;
}

.btn-checkout-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
    filter: brightness(1.1);
}

/* SweetAlert Button Fix */
.swal2-actions button {
    padding: 10px 25px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    margin: 5px !important;
    min-width: 100px;
}

#modal_notify_sales .modal-content {
    border-radius: 10px;
}

#modal_notify_sales .modal-body {
    padding: 0 !important;
}

#modal_notify_sales .modal-dialog {
    max-width: 750px;
}

#modal_notify_sales .img_sales {
    width: 100%;
}

/* ============================================================ */
/* PURCHASED DISPLAY BADGE - PREMIUM VERSION */
/* ============================================================ */
.purchased-display-badge {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin: 0 0 10px 0;
    width: 100%;
    min-height: 62px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.purchased-display-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #10b981;
}

.result-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: 100%;
}

.result-number {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    word-break: break-word;
}

.result-number span {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    margin-left: 5px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-date {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-pro-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ff8c00;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.premium-image-wrap {
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #e53935;
}

.premium-image-wrap img {
    transition: transform 0.6s ease;
}

.premium-pro-item:hover .premium-image-wrap img {
    transform: scale(1.1) rotate(1deg);
}

.shine-sweep {
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: sweep 4s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes sweep {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.premium-price-badge {
    position: absolute;
    top: 10px;
    right: -5px;
    background: linear-gradient(45deg, #e53935, #b71c1c);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px 0 0 20px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
    border: 2px solid #FFD700;
    border-right: none;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.premium-pro-item:hover .premium-price-badge {
    transform: translateX(-5px) scale(1.05);
}

.premium-price-badge .price-val {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.premium-price-badge .price-currency {
    font-size: 12px;
    vertical-align: top;
    opacity: 0.9;
}

.premium-info {
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(to bottom, #fff 0%, #fff9f9 100%);
}

.premium-name {
    margin: 0 0 16px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-name a {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.premium-pro-item:hover .premium-name a {
    color: #d32f2f;
}

/* WOW Button */
.premium-btn-container {
    margin: 0;
    cursor: pointer;
    display: block;
    width: 100%;
}

.premium-btn-container input {
    display: none;
}

.premium-btn {
    position: relative;
    border-radius: 8px;
    padding: 12px 10px;
    font-size: 15px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #e53935;
    transition: all 0.2s ease;
    overflow: hidden;
}

/* .premium-pro-item:hover .premium-btn {
    animation: btnPulse 1.5s infinite;
} */

@keyframes btnPulse {
    0% {
        box-shadow: 0 6px 0 #b71c1c, 0 10px 20px rgba(229, 57, 53, 0.4);
    }

    50% {
        box-shadow: 0 6px 0 #b71c1c, 0 10px 30px rgba(229, 57, 53, 0.7);
        filter: brightness(1.1);
    }

    100% {
        box-shadow: 0 6px 0 #b71c1c, 0 10px 20px rgba(229, 57, 53, 0.4);
    }
}

.premium-btn:active,
.premium-btn-container input:checked+.premium-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.uncheck-state {
    display: block;
}

.checked-state {
    display: none;
}

.pulse-icon {
    animation: pointerPulse 1s alternate infinite;
    display: inline-block;
}

@keyframes pointerPulse {
    from {
        transform: translateX(-3px);
    }

    to {
        transform: translateX(3px);
    }
}

/* Checked state styles */
.premium-btn-container input:checked+.premium-btn {
    background: #4caf50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: none;
}

.premium-btn-container input:checked+.premium-btn:active {
    box-shadow: 0 0 0 #1b5e20, 0 2px 5px rgba(76, 175, 80, 0.4);
}

.premium-btn-container input:checked+.premium-btn .uncheck-state {
    display: none;
}

.premium-btn-container input:checked+.premium-btn .checked-state {
    display: block;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================ */

.label_choose_product {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    z-index: 1;
}

.label_choose_product input {
    display: none;
}

/* style button */
.label_choose_product span {
    display: inline-block;
    background: #ffffff;
    color: #f35b0c;
    padding: 5px 12px;
    border-radius: 20px;
    border: 2px solid #f35b0c;
    transition: all .25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* hover */
.label_choose_product:hover span {
    background: #fff5f5;
}

/* checked */
.label_choose_product input:checked+span {
    background: #f35b0c;
    color: #fff;
    border-color: #f35b0c;
}

/* icon check */
.label_choose_product input:checked+span:before {
    content: "✓ ";
    font-weight: bold;
}

.checkout_bar {
    position: fixed;
    bottom: 0;
    left: 15%;
    right: 15%;
    background: #f3f4f6;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 99;
    font-family: Arial, sans-serif;
}

/* layout */
.checkout_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

/* left */
.checkout_info {
    flex: 1;
    min-width: 0;
}

.checkout_selected {
    font-size: 20px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout_selected .count {
    color: #ff5a00;
    font-weight: 700;
}

/* Danh sách tên cầu đã chọn */
.selected_names {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    max-width: 100%;
    overflow-x: auto;
}

.selected_name_tag {
    display: inline-block;
    background: #fff3eb;
    color: #e65100;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #ffcc80;
    white-space: nowrap;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .selected_name_tag {
        font-size: 14px;
        padding: 4px 10px;
    }
}

/* price */
.checkout_price_row {
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price_old {
    text-decoration: line-through;
    color: #9ca3af;
    margin-right: 6px;
    font-size: 20px;
}

/* badge */
.saving {
    background: #ffe8dc;
    color: #ff5a00;
    font-size: 16px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
}

/* right */
.checkout_payment {
    text-align: right;
    flex-shrink: 0;
}

.checkout_payment .label {
    font-size: 11px;
    color: #64748b;
    letter-spacing: 1px;
}

.price_final {
    font-size: 28px;
    font-weight: 800;
    color: #ff5a00;
    white-space: nowrap;
}

/* button */
.btn_checkout {
    width: 100%;
    border: none;
    background: #f35b0c;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 16px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
}

.btn_checkout:hover {
    background: #e54f04;
}

.btn_checkout:active {
    transform: scale(0.97);
}

.rainbow_text_animated {
    background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: rainbow_animation 6s ease-in-out infinite;
    background-size: 400% 100%;
}

.banner-slider {
    overflow-y: hidden;
}

/* container dots */
.img-banner-home1 {
    position: relative;
}

.img-banner-home1 .tns-nav {
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -50px;
    text-align: center;
    z-index: 1;
}

/* dot */
.img-banner-home1 .tns-nav button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cfcfcf;
    margin: 0 5px;
    padding: 0;
    transition: all .3s ease;
}

/* dot active */
.img-banner-home1 .tns-nav button.tns-nav-active {
    width: 25px;
    background: #ff4d00;
    border-radius: 20px;
}

.box_banner_img {
    position: relative;
}

/* animation */
@keyframes rainbow_border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* mobile */
@keyframes madara-ring {
    0% {
        transform: rotate(0)
    }

    1% {
        transform: rotate(30deg)
    }

    3% {
        transform: rotate(-28deg)
    }

    5% {
        transform: rotate(34deg)
    }

    7% {
        transform: rotate(-32deg)
    }

    9% {
        transform: rotate(30deg)
    }

    11% {
        transform: rotate(-28deg)
    }

    13% {
        transform: rotate(26deg)
    }

    15% {
        transform: rotate(-24deg)
    }

    17% {
        transform: rotate(22deg)
    }

    19% {
        transform: rotate(-20deg)
    }

    21% {
        transform: rotate(18deg)
    }

    23% {
        transform: rotate(-16deg)
    }

    25% {
        transform: rotate(14deg)
    }

    27% {
        transform: rotate(-12deg)
    }

    29% {
        transform: rotate(10deg)
    }

    31% {
        transform: rotate(-8deg)
    }

    33% {
        transform: rotate(6deg)
    }

    35% {
        transform: rotate(-4deg)
    }

    37% {
        transform: rotate(2deg)
    }

    39% {
        transform: rotate(-1deg)
    }

    41% {
        transform: rotate(1deg)
    }

    43%,
    100% {
        transform: rotate(0)
    }
}

.button_help_sales {
    position: fixed;
    right: 20px;
    bottom: 40%;
    z-index: 99;
}

.button_help_sales img {
    max-width: 90px
}

.effect-ring {
    animation: madara-ring 6s infinite;
    transform-origin: 50% 0%
}

.driver-popover-title {
    background: #fff;
}

.driver-popover-description {
    font-size: 18px;
}

/* ==========================================
   CHECKOUT / FORM BOX (legacy compat)
   ========================================== */
.checkout-multiple-box,
.checkout-form-box,
.checkout-form-check-box {
    background: rgba(255, 255, 255, 0.92);
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.checkout-multiple-box .checkout-title,
.checkout-form-box .checkout-title {
    font-weight: 700;
    margin-bottom: 0;
    font-size: 20px;
    color: #1e293b;
}

.checkout-multiple-box .checkout-summary {
    font-size: 16px;
    margin-top: 10px;
}

.checkout-multiple-box .checkout-summary span {
    font-weight: bold;
}

.checkout-form-box input,
.checkout-form-box select {
    font-size: 16px;
}

/* ==========================================
   RAINBOW TEXT ANIMATION (kept)
   ========================================== */
@keyframes rainbow_animation {

    0%,
    100% {
        background-position: 0 0;
    }

    50% {
        background-position: 100% 0;
    }
}

.rainbow_text_animated {
    background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: rainbow_animation 6s ease-in-out infinite;
    background-size: 400% 100%;
}

/* ==========================================
   BANNER SALE (kept)
   ========================================== */
.banner-sale-container {
    background: radial-gradient(circle at center, #d40000 0%, #800000 100%);
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border: 8px solid #FFD700;
    padding: 30px;
    color: white;
}

.corner-decor {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid #FFD700;
}

.top-left {
    top: 10px;
    left: 10px;
    border-right: 0;
    border-bottom: 0;
}

.top-right {
    top: 10px;
    right: 10px;
    border-left: 0;
    border-bottom: 0;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: 0;
    border-top: 0;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: 0;
    border-top: 0;
}

.vietnamese-pattern {
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuCGAo3WKZCQD_DNa2zxrPd038CLOJn--bTQjRnwgeSujVdxbJDMQcCfJruFpbvin7I1WHSeK-N48gqvnb8MmjLmrP6tmYw17ijZcAU02yFqe-Ee3Y_VmRXMrw16DlKBFy9rKegHbguslLF4MnTuE8ateMyc3BvYwIPdf8NuneYahrjFw4nq7MJEOOubRa4vg3cqyghIk-R2nI-jw00OUz2bjANxHzy_KQRcn7g5UV2vCena1Wpn4xZAW-uGkokWU6-amfxTWUZ2qno);
    opacity: 0.1;
    position: absolute;
    inset: 0;
}

.banner-header h2 {
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.banner-header h1 {
    font-weight: bold;
    text-transform: uppercase;
}

.offer-box {
    background: rgba(128, 0, 0, 0.5);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 10px;
}

.btn-buy {
    background: #FFD700;
    color: #8B0000;
    font-weight: bold;
    font-size: 20px;
    padding: 12px 40px;
    border-radius: 40px;
}

.btn-buy:hover {
    background: #ffe44d;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.9);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.coin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FFD700;
    border: 2px solid #B8860B;
    border-radius: 50%;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
}


/* ============================================================
   ★ MODERN PAYMENT PAGE REDESIGN ★
   ============================================================ */

/* --- PAGE WRAPPER --- */
/* .payment-page-wrapper {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 30px 0 60px;
    position: relative;
    border-radius: 20px;
} */

/* --- ENTRY ANIMATION --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* --- MODERN CARD (base) --- */
.modern-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e53935, #ff7043, #e53935);
    background-size: 200% 100%;
    animation: shimmer-bar 4s ease infinite;
}

@keyframes shimmer-bar {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- CARD HEADER --- */
.card-header-modern {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.step-badge {
    width: 40px;
    height: 40px;
    background: #e53935;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.card-header-text {
    flex: 1;
    padding: 0 5px;
}

.card-header-text .checkout-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 2px 0;
}

.card-header-text .checkout-title i {
    color: #e53935;
    margin-right: 6px;
}

.card-subtitle {
    font-size: 19px;
    color: #999;
    margin: 0;
}

/* --- CHECKOUT CONTAINER (updated) --- */
.checkout-container {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* --- CHECKOUT TITLE (updated) --- */
.checkout-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
    color: #222;
}

/* --- PRODUCT LIST (updated) --- */
.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 14px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.product-item:hover {
    border-color: #e53935;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.08);
}

.product-left {
    display: flex;
    gap: 14px;
    align-items: center;
    width: 100%;
}

.product-left .product-info {
    width: 100%;
}

.product-image-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image {
    transform: scale(1.08);
}

/* info */
.product-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product-name {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    margin-right: 10px;
}

.product-desc {
    font-size: 13px;
    color: #94a3b8;
}

/* price */

.old-price {
    font-size: 13px;
    color: #b0b0b0;
    text-decoration: line-through;
    margin-right: 8px;
}

.new-price {
    color: #e53935;
    font-weight: 700;
    font-size: 15px;
}

/* remove button */
.remove-product {
    width: 34px;
    height: 34px;
    border: none;
    background: #fee2e2;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    margin-left: 30px;
}

.remove-product:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* --- CHECKOUT SUMMARY BOX (updated) --- */
.checkout-summary-box {
    background: linear-gradient(135deg, #fefefe, #f8fafc);
    padding: 18px 20px;
    border-radius: 14px;
    margin-top: 10px;
    border: 1px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 8px 0;
}

.summary-row span {
    color: #64748b;
}

.summary-row span i {
    margin-right: 6px;
    color: #94a3b8;
}

.summary-row .price {
    font-weight: 800;
    color: #334155;
}

.summary-row.discount .price {
    color: #16a34a;
    font-weight: 700;
}

.summary-divider {
    border-top: 2px dashed #e2e8f0;
    margin: 10px 0;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 800;
    margin-top: 15px;
    padding: 15px;
    background: #fff8e1;
    border: 1px solid #ffca28;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.summary-row.total span {
    color: #1e293b;
}

.summary-row.total .price {
    color: #d32f2f;
    font-size: 24px;
    font-weight: 800;
}

/* --- ADD PRODUCT (updated) --- */
.add-product-box {
    display: flex;
    margin-top: 10px;
    align-items: stretch;
}

.select-wrapper {
    flex: 1;
    position: relative;
    margin-right: 8px;
}

.select-wrapper .select-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

#product_select {
    width: 100%;
    padding: 6px 10px 6px 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    background: #fff;
    transition: all 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

#product_select:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
    outline: none;
}

.add-product-box .select2-container--default .select2-selection--multiple {
    height: auto !important;
    min-height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 2px 10px 2px 28px;
    transition: all 0.25s ease;
    background-color: #f8fafc;
}

.add-product-box .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #e53935;
    outline: none;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
    background-color: #fff;
}

.add-product-box .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    position: relative;
    z-index: 2;
}

.add-product-box .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 5px;
}

.add-product-box .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
    border: 1px solid #fee2e2;
    border-radius: 6px;
    color: #b91c1c;
    font-size: 12px;
    padding: 4px 8px 4px 10px;
    margin: 0;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.add-product-box .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-right: 0;
    margin-left: 5px;
    border: none;
    padding: 0;
    background: transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-product-box .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #b91c1c;
    transform: scale(1.2);
}

.add-product-box .select2-search.select2-search--inline {
    margin-top: 0;
    flex: 1;
    min-width: 150px;
    position: absolute;
}

.add-product-box .select2-search.select2-search--inline .select2-search__field {
    margin: 0;
    height: 32px;
    font-size: 14px;
    color: #475569;
    width: 100% !important;
    background: transparent;
    line-height: 32px;
}

.add-product-box .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #94a3b8;
    margin-top: 0;
    font-size: 13px;
}

/* Base Select2 Dropdown overrides */
.select2-container--default .select2-dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    overflow: hidden;
    margin-top: 4px;
}

.select2-container--default .select2-results__option {
    padding: 10px 15px;
    font-size: 14px;
    color: #334155;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #e53935 !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: #fef2f2 !important;
    color: #e53935 !important;
    font-weight: 600;
}

#add_product {
    background: #1e293b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

#add_product:hover {
    background: #c62828;
}

#add_product i {
    margin-right: 6px;
}

/* --- SIDEBAR MODERN STYLING --- */
.sidebar-section-modern {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-title-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.sidebar-title-modern>*:not(:last-child) {
    margin-right: 12px;
}

.sidebar-title-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e53935;
}

.sidebar-title-modern h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-title-modern .badge-new {
    height: 18px;
}

.sidebar-list-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-list-modern>*:not(:last-child) {
    margin-bottom: 10px;
}

.sidebar-item-modern {
    display: block;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.sidebar-item-modern:hover {
    background: #e53935;
    color: #fff !important;
    border-color: #e53935;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

.sidebar-banner-item {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-banner-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.sidebar-banner-item:hover img {
    transform: scale(1.03);
}

.product-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-action>*:not(:last-child) {
    margin-right: 8px;
}

.product-action button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.product-action button:hover {
    background: #e2e8f0;
}

.qty {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

/* --- CHECKOUT SUMMARY (legacy compat) --- */
.checkout-summary {
    margin-top: 10px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
}

.checkout-summary span {
    font-weight: 600;
}

.checkout-summary.final {
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}


/* ============================================================
   ★ MODERN FORM STYLES ★
   ============================================================ */

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modern-form>*:not(:last-child) {
    margin-bottom: 4px;
}

.form-field-modern {
    margin-bottom: 18px;
    position: relative;
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.field-label i {
    color: #e53935;
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

.modern-input,
.modern-select {
    width: 100%;
    height: 46px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) inset;
}

.modern-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.modern-input:hover,
.modern-select:hover {
    border-color: #9ca3af;
    background: #ffffff;
}

.modern-input:focus,
.modern-select:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
    background: #ffffff;
    outline: none;
}

.modern-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* --- WARNING BOX --- */
.warning-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #fffcf0;
    border: 1.5px solid #ffeeba;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #856404;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.warning-box>*:not(:last-child) {
    margin-right: 12px;
}

.warning-box i {
    color: #ffc107;
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* --- SUBMIT BUTTON --- */
.btn-submit-modern {
    width: 100%;
    border: none;
    padding: 14px !important;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: #e53935;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-submit-modern:hover {
    background: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-submit-modern:active {
    transform: translateY(1px);
}

/* --- BLACKLIST WARNING --- */
.blacklist-warning {
    text-align: center;
    padding: 30px 20px;
    color: #dc2626;
}

.blacklist-warning i {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.7;
}

.blacklist-warning p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}


/* ============================================================
   ★ MODERN ALERT ★
   ============================================================ */
.alert-modern {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-modern>*:not(:last-child) {
    margin-right: 12px;
}

.alert-modern i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-info-modern {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.alert-info-modern i {
    color: #3b82f6;
}


/* ============================================================
   ★ MODERN TABLE ★
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.table-modern thead th {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #475569;
    font-weight: 700;
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.table-modern thead th:first-child {
    border-radius: 12px 0 0 0;
}

.table-modern thead th:last-child {
    border-radius: 0 12px 0 0;
}

.table-modern tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.table-modern tbody tr {
    transition: background 0.2s ease;
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.table-modern tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

/* row status colors */
.table-modern tbody tr.row-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.table-modern tbody tr.row-success:hover {
    background: #dcfce7;
}

.table-modern tbody tr.row-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.table-modern tbody tr.row-error:hover {
    background: #fee2e2;
}

.table-modern td .status img {
    width: 20px;
    height: 20px;
    margin-left: 6px;
    vertical-align: middle;
}

.main-pro {
    margin-top: 35px;
}

/* ===== KHUNG BANNER CHÍNH ===== */
.banner-container {
    container-type: inline-size;
    width: 100%;
    max-width: 1050px;
    margin-right: auto;
    margin-left: auto;
    /* iOS 13 Fallback for aspect-ratio */
    height: 0;
    padding-bottom: 54.2857%;
    /* (570/1050) * 100 */
    position: relative;
    overflow: hidden;
    border: 10px solid #d4a017;
    border: 0.952cqi solid #d4a017;
    box-shadow:
        0 0 30px rgba(212, 160, 23, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(0, 0, 0, 0.1);
    box-shadow:
        0 0 2.857cqi rgba(212, 160, 23, 0.4),
        0 1.905cqi 5.714cqi rgba(0, 0, 0, 0.6),
        inset 0 0 5.714cqi rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border-radius: 0.381cqi;
}

@media (min-width: 1366px) {
    .banner-container {
        padding-bottom: 25%;
    }

    #modal_notify_sales .banner-container {
        padding-bottom: 50%;
    }
}

.banner_sale_header .banner-container {
    max-width: 650px;
    /* Resize the banner specifically here */
    margin: 0 auto;
}

/* Nền đỏ lấp lánh */
.bg-red {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-red img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Khung ảnh trang trí */
.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.frame-overlay img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Cành đào góc trên phải */
.canh-dao {
    position: absolute;
    top: -20px;
    top: -1.905cqi;
    right: -15px;
    right: -1.429cqi;
    width: 320px;
    width: 30.476cqi;
    z-index: 8;
    transform: rotate(180deg) scaleX(-1);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    filter: drop-shadow(0 0.476cqi 1.429cqi rgba(0, 0, 0, 0.3));
    animation: swayBranch 4s ease-in-out infinite;
}

@keyframes swayBranch {

    0%,
    100% {
        transform: rotate(180deg) scaleX(-1);
    }

    50% {
        transform: rotate(178deg) scaleX(-1);
    }
}

/* ===== TIÊU ĐỀ ===== */
.header {
    position: absolute;
    top: 25px;
    top: 2.5cqi;
    left: 55px;
    left: 5.238cqi;
    z-index: 11;
    background: none;
}

.title-gold {
    font-size: 60px;
    font-size: 5.714cqi;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff7ad 0%, #ffd700 30%, #ffa900 60%, #d48400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(3px 4px 3px rgba(0, 0, 0, 0.6));
    filter: drop-shadow(0.286cqi 0.381cqi 0.286cqi rgba(0, 0, 0, 0.6));
    letter-spacing: 3px;
    letter-spacing: 0.286cqi;
    line-height: 1.1;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {

    0%,
    100% {
        filter: drop-shadow(0.286cqi 0.381cqi 0.286cqi rgba(0, 0, 0, 0.6)) brightness(1);
    }

    50% {
        filter: drop-shadow(0.286cqi 0.381cqi 0.762cqi rgba(255, 215, 0, 0.4)) brightness(1.05);
    }
}

.subtitle-white {
    font-size: 34px;
    font-size: 3.25cqi;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    letter-spacing: 0.19cqi;
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.5);
    text-shadow: 0.19cqi 0.286cqi 0.571cqi rgba(0, 0, 0, 0.5);
    margin-top: 2px;
    margin-top: 0.19cqi;
}

/* ===== NỘI DUNG CHÍNH ===== */
.main-content {
    position: absolute;
    top: 175px;
    top: 16.667cqi;
    left: 40px;
    left: 3.81cqi;
    z-index: 10;
    display: flex;
    align-items: center;
}

.promo-list {
    list-style: none;
}

.promo-item {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-size: 2.667cqi;
    color: #fff;
    font-weight: 800;
    margin-bottom: 32px;
    margin-bottom: 3.048cqi;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
    text-shadow: 0.095cqi 0.19cqi 0.381cqi rgba(0, 0, 0, 0.4);
    animation: fadeSlideIn 0.6s ease-out both;
}

.promo-item:nth-child(1) {
    animation-delay: 0.2s;
}

.promo-item:nth-child(2) {
    animation-delay: 0.4s;
}

.promo-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
        transform: translateX(-2.857cqi);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.check-icon {
    width: 48px;
    width: 4.571cqi;
    height: 48px;
    height: 4.571cqi;
    background: linear-gradient(135deg, #6dd400, #4caf00);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 18px;
    margin-right: 1.714cqi;
    font-size: 24px;
    font-size: 2.286cqi;
    flex-shrink: 0;
    box-shadow:
        0 0 12px rgba(76, 175, 0, 0.5),
        0 3px 8px rgba(0, 0, 0, 0.3);
    box-shadow:
        0 0 1.143cqi rgba(76, 175, 0, 0.5),
        0 0.286cqi 0.762cqi rgba(0, 0, 0, 0.3);
    animation: checkPop 1.5s ease-in-out infinite;
}

@keyframes checkPop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.arrow {
    color: #ffdb15;
    margin: 0 10px;
    margin: 0 0.952cqi;
    font-size: 28px;
    font-size: 2.667cqi;
}

.action-buttons {
    position: absolute;
    top: 430px;
    top: 41cqi;
    left: 45px;
    left: 4.5cqi;
    z-index: 15;
    display: flex;
    gap: 2.5cqi;
}

.action-buttons>*:not(:last-child) {
    margin-right: 10px;
    /* 2.5cqi at 1000px */
}

.buy-now-btn,
.guide-btn {
    font-size: 28px;
    font-size: 2.8cqi;
    font-weight: 900;
    padding: 12px 25px;
    padding: 1.2cqi 2.5cqi;
    border-radius: 50px;
    border-radius: 5cqi;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0.5cqi 1.5cqi rgba(0, 0, 0, 0.5);
    border: 3px solid #fff;
    border: 0.3cqi solid #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    animation: btnPulseBoth 1.5s ease-in-out infinite;
}

.buy-now-btn {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #8b0000;
    border-color: #ffd700;
    box-shadow: 0 0.5cqi 1.5cqi rgba(255, 170, 0, 0.5);
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, #ffe44d, #ffb700);
    box-shadow: 0 1cqi 3cqi rgba(255, 170, 0, 0.7);
    transform: scale(1.08);
    /* slight extra zoom on hover */
}

.guide-btn {
    background: linear-gradient(135deg, #ffffff 0%, #fff0f0 100%);
    color: #e53935;
    border-color: #ffcdd2;
    box-shadow: 0 0.5cqi 1.5cqi rgba(229, 57, 53, 0.2);
}

.guide-btn:hover {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe0e0 100%);
    color: #c62828;
    border-color: #ef9a9a;
    box-shadow: 0 1cqi 3cqi rgba(229, 57, 53, 0.4);
    transform: scale(1.08);
    /* slight extra zoom on hover */
}

@keyframes btnPulseBoth {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes btnPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0.5cqi 1.5cqi rgba(255, 170, 0, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 1cqi 3cqi rgba(255, 215, 0, 0.8);
    }
}

/* ===== ẢNH THẦN TÀI ===== */
.character {
    position: absolute;
    bottom: -15px;
    bottom: -1.429cqi;
    right: -10px;
    right: -0.952cqi;
    height: 77%;
    z-index: 7;
    filter: drop-shadow(-10px 10px 25px rgba(0, 0, 0, 0.5));
    filter: drop-shadow(-0.952cqi 0.952cqi 2.381cqi rgba(0, 0, 0, 0.5));
    animation: thanTaiBounce 3s ease-in-out infinite;
}

@keyframes thanTaiBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
        transform: translateY(-0.952cqi);
    }
}

/* ===== ĐỒNG XU BAY XUNG QUANH ===== */
.coins-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.coin {
    position: absolute;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    filter: drop-shadow(0 0.381cqi 0.762cqi rgba(0, 0, 0, 0.4));
}

.coin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Đồng xu bay kiểu 1 - lơ lửng lên xuống */
@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }

    25% {
        transform: translateY(-40px) rotate(15deg) scale(1.05);
        /* px fallback */
        transform: translateY(-3.81cqi) rotate(15deg) scale(1.05);
    }

    50% {
        transform: translateY(-80px) rotate(-10deg) scale(0.95);
        /* px fallback */
        transform: translateY(-7.619cqi) rotate(-10deg) scale(0.95);
        opacity: 0.9;
    }

    75% {
        transform: translateY(-40px) rotate(20deg) scale(1.05);
        /* px fallback */
        transform: translateY(-3.81cqi) rotate(20deg) scale(1.05);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Đồng xu bay kiểu 2 - bay chéo */
@keyframes floatDiagonal {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.9;
    }

    25% {
        transform: translate(25px, -50px) rotate(90deg);
        /* px fallback */
        transform: translate(2.381cqi, -4.762cqi) rotate(90deg);
        opacity: 1;
    }

    50% {
        transform: translate(-15px, -90px) rotate(180deg);
        /* px fallback */
        transform: translate(-1.429cqi, -8.571cqi) rotate(180deg);
        opacity: 0.8;
    }

    75% {
        transform: translate(30px, -40px) rotate(270deg);
        /* px fallback */
        transform: translate(2.857cqi, -3.81cqi) rotate(270deg);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.9;
    }
}

/* Đồng xu bay kiểu 3 - xoay tròn */
@keyframes spinFloat {
    0% {
        transform: translateY(0) rotateY(0deg) scale(1);
    }

    25% {
        transform: translateY(-30px) rotateY(90deg) scale(0.8);
        /* px fallback */
        transform: translateY(-2.857cqi) rotateY(90deg) scale(0.8);
    }

    50% {
        transform: translateY(-60px) rotateY(180deg) scale(1);
        /* px fallback */
        transform: translateY(-5.714cqi) rotateY(180deg) scale(1);
    }

    75% {
        transform: translateY(-30px) rotateY(270deg) scale(0.8);
        /* px fallback */
        transform: translateY(-2.857cqi) rotateY(270deg) scale(0.8);
    }

    100% {
        transform: translateY(0) rotateY(360deg) scale(1);
    }
}

/* Đồng xu bay kiểu 4 - rơi nhẹ */
@keyframes coinFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        /* px fallback */
        transform: translateY(-9.524cqi) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(20px) rotate(180deg);
        /* px fallback */
        transform: translateY(1.905cqi) rotate(180deg);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        /* px fallback */
        transform: translateY(-9.524cqi) rotate(360deg);
        opacity: 0;
    }
}

/* Đồng xu bay kiểu 5 - lắc ngang */
@keyframes swingCoin {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    20% {
        transform: translate(30px, -20px) rotate(40deg);
        /* px fallback */
        transform: translate(2.857cqi, -1.905cqi) rotate(40deg);
    }

    40% {
        transform: translate(-20px, -50px) rotate(-30deg);
        /* px fallback */
        transform: translate(-1.905cqi, -4.762cqi) rotate(-30deg);
    }

    60% {
        transform: translate(25px, -70px) rotate(50deg);
        /* px fallback */
        transform: translate(2.381cqi, -6.667cqi) rotate(50deg);
    }

    80% {
        transform: translate(-15px, -30px) rotate(-20deg);
        /* px fallback */
        transform: translate(-1.429cqi, -2.857cqi) rotate(-20deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.c1 {
    width: 45px;
    width: 4.286cqi;
    top: 75%;
    left: 3%;
    animation: floatUp 6s ease-in-out infinite;
}

.c2 {
    width: 35px;
    width: 3.333cqi;
    top: 50%;
    left: 8%;
    animation: floatDiagonal 8s ease-in-out infinite 0.5s;
}

.c3 {
    width: 28px;
    width: 2.667cqi;
    top: 20%;
    left: 15%;
    animation: spinFloat 5s linear infinite 1s;
}

.c4 {
    width: 40px;
    width: 3.81cqi;
    top: 60%;
    left: 25%;
    animation: coinFall 7s ease-in-out infinite 0.3s;
}

.c5 {
    width: 30px;
    width: 2.857cqi;
    top: 10%;
    left: 42%;
    animation: swingCoin 9s ease-in-out infinite 1.5s;
}

.c6 {
    width: 38px;
    width: 3.619cqi;
    top: 80%;
    left: 38%;
    animation: floatUp 10s ease-in-out infinite 2s;
}

.c7 {
    width: 32px;
    width: 3.048cqi;
    top: 35%;
    left: 55%;
    animation: floatDiagonal 6s ease-in-out infinite 0.8s;
}

.c8 {
    width: 42px;
    width: 4cqi;
    top: 65%;
    left: 60%;
    animation: spinFloat 8s linear infinite 1.2s;
}

.c9 {
    width: 26px;
    width: 2.476cqi;
    top: 5%;
    left: 68%;
    animation: coinFall 5.5s ease-in-out infinite 0.6s;
}

.c10 {
    width: 36px;
    width: 3.429cqi;
    top: 45%;
    left: 72%;
    animation: swingCoin 7.5s ease-in-out infinite 1.8s;
}

.c11 {
    width: 30px;
    width: 2.857cqi;
    top: 85%;
    left: 15%;
    animation: spinFloat 9s linear infinite 2.5s;
}

.c12 {
    width: 25px;
    width: 2.381cqi;
    top: 25%;
    left: 50%;
    animation: floatUp 7s ease-in-out infinite 3s;
}

.c13 {
    width: 34px;
    width: 3.238cqi;
    top: 70%;
    left: 48%;
    animation: coinFall 6.5s ease-in-out infinite 1s;
}

.c14 {
    width: 28px;
    width: 2.667cqi;
    top: 15%;
    left: 30%;
    animation: swingCoin 8.5s ease-in-out infinite 0.2s;
}

.c15 {
    width: 40px;
    width: 3.81cqi;
    top: 90%;
    left: 55%;
    animation: floatDiagonal 11s ease-in-out infinite 2.2s;
}

/* Nhóm đồng xu ở dưới thần tài */
.nhieu-xu {
    position: absolute;
    bottom: 5px;
    bottom: 0.476cqi;
    right: 180px;
    right: 17.143cqi;
    width: 170px;
    width: 16.19cqi;
    z-index: 6;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
    filter: drop-shadow(0 0.476cqi 0.952cqi rgba(0, 0, 0, 0.4));
    animation: xuBounce 2s ease-in-out infinite;
}

@keyframes xuBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.03);
        /* px fallback */
        transform: translateY(-0.476cqi) scale(1.03);
    }
}

/* ===== HIỆU ỨNG LẤP LÁNH SPARKLE ===== */
.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.sparkle {
    position: absolute;
    width: 6px;
    width: 0.571cqi;
    height: 6px;
    height: 0.571cqi;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.8), 0 0 20px 6px rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 0.952cqi 0.286cqi rgba(255, 255, 255, 0.8), 0 0 1.905cqi 0.571cqi rgba(255, 215, 0, 0.4);
    animation: sparkleAnim 2s ease-in-out infinite;
}

@keyframes sparkleAnim {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sp1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.sp2 {
    top: 30%;
    left: 45%;
    animation-delay: 0.4s;
}

.sp3 {
    top: 50%;
    left: 10%;
    animation-delay: 0.8s;
}

.sp4 {
    top: 70%;
    left: 65%;
    animation-delay: 1.2s;
}

.sp5 {
    top: 15%;
    left: 75%;
    animation-delay: 0.2s;
}

.sp6 {
    top: 85%;
    left: 30%;
    animation-delay: 0.6s;
}

.sp7 {
    top: 40%;
    left: 80%;
    animation-delay: 1.0s;
}

.sp8 {
    top: 60%;
    left: 50%;
    animation-delay: 1.4s;
}

.sp9 {
    top: 25%;
    left: 35%;
    animation-delay: 1.6s;
}

.sp10 {
    top: 75%;
    left: 15%;
    animation-delay: 0.3s;
}

.sp11 {
    top: 5%;
    left: 55%;
    animation-delay: 1.8s;
}

.sp12 {
    top: 90%;
    left: 70%;
    animation-delay: 0.7s;
}

/* ===== HIỆU ỨNG ÁNH SÁNG CHẠY ===== */
.light-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    z-index: 3;
    animation: sweepLight 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sweepLight {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* ===== VIỀN VÀNG PHÁT SÁNG ===== */
.banner-container::after {
    content: '';
    position: absolute;
    top: -2px;
    top: -0.19cqi;
    left: -2px;
    left: -0.19cqi;
    right: -2px;
    right: -0.19cqi;
    bottom: -2px;
    bottom: -0.19cqi;
    z-index: -1;
    border-radius: 6px;
    border-radius: 0.571cqi;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 160, 23, 0.3);
        /* px fallback */
        box-shadow: 0 0 1.905cqi rgba(212, 160, 23, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(212, 160, 23, 0.6), 0 0 80px rgba(255, 215, 0, 0.2);
        /* px fallback */
        box-shadow: 0 0 3.81cqi rgba(212, 160, 23, 0.6), 0 0 7.619cqi rgba(255, 215, 0, 0.2);
    }
}

/* BADGE FLASH SALE - ẨN (không có trong ảnh gốc) */
.flash-badge {
    display: none;
}

/* RIBBON - ẨN (không có trong ảnh gốc) */
.ribbon {
    display: none;
}

/* PHÁO HOA - ẨN (không có trong ảnh gốc) */
.firework {
    display: none;
}

.button_view_detail {
    position: relative;
    border-radius: 8px;
    padding: 12px 10px;
    font-size: 15px;
    color: #475569;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
    transition: all 0.3s ease;
    overflow: hidden;
}

.button_view_detail:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.product-name a {
    transition: all 0.3s ease;
    font-weight: bold;
}

.product-name a:hover {
    color: #e53935;
}

.form-field-modern {
    margin-bottom: 5px;
}

.warning-box-info {
    font-size: 13px;
}

/* ============================================================
   ★ RESPONSIVE ★
   ============================================================ */
@media (max-width:768px) {
    .warning-box-info {
        padding: 5px 10px;
        margin-bottom: 5px;
    }

    .btn-submit-modern {
        margin-top: 0;
    }

    .box_button_form_search_order {
        margin-bottom: 0;
    }

    #mua_caungay {
        padding-top: 0 !important;
    }

    /* iOS 13 Banner Fallbacks - Tablet (768px) */
    .canh-dao {
        top: -14px;
        right: -10px;
        width: 224px;
    }

    .header {
        top: 17px;
        left: 38px;
    }

    .title-gold {
        font-size: 42px;
        letter-spacing: 2px;
    }

    .subtitle-white {
        font-size: 24px;
        letter-spacing: 1px;
        margin-top: 1px;
    }

    .main-content {
        top: 122px;
        left: 28px;
    }

    .promo-item {
        font-size: 20px;
        margin-bottom: 22px;
    }

    .check-icon {
        width: 34px;
        height: 34px;
        margin-right: 12px;
        font-size: 17px;
    }

    .arrow {
        margin: 0 7px;
        font-size: 20px;
    }

    .action-buttons {
        top: 301px;
        left: 32px;
    }

    .buy-now-btn,
    .guide-btn {
        font-size: 20px;
        padding: 8px 18px;
        border-radius: 35px;
    }

    .character {
        bottom: -10px;
        right: -7px;
    }

    .nhieu-xu {
        bottom: 3px;
        right: 126px;
        width: 119px;
    }

    .sparkle {
        width: 4px;
        height: 4px;
    }

    .action-buttons>*:not(:last-child) {
        margin-right: 5px;
    }
}

@media (max-width:480px) {
    .payment-page-wrapper {
        padding: 10px 0 30px;
    }

    .modern-card {
        padding: 10px;
        border-radius: 12px;
    }

    .card-header-modern {
        gap: 12px;
        margin-bottom: 5px;
        padding-bottom: 12px;
    }

    .step-badge {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .card-header-text .checkout-title {
        font-size: 17px;
    }

    .product-image-wrapper {
        width: 48px;
        height: 48px;
    }

    .product-name {
        font-size: 13px;
    }

    .add-product-box {
        flex-direction: column;
    }

    #add_product {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .summary-row.total {
        font-size: 17px;
        padding: 5px 12px;
        margin-top: 10px;
    }

    .summary-row.total .price {
        font-size: 20px;
    }

    .btn-submit-modern {
        font-size: 16px;
        padding: 14px;
    }

    .table-modern {
        font-size: 12px;
    }

    .table-modern thead th,
    .table-modern tbody td {
        padding: 10px 8px;
    }

    .checkout_bar {
        padding: 14px;
        left: 0;
        right: 0;
    }

    .price_final {
        font-size: 24px;
    }

    .checkout_selected {
        font-size: 13px;
    }

    .price_old {
        font-size: 12px;
    }

    .saving {
        font-size: 11px;
    }

    .btn_checkout {
        font-size: 17px;
        padding: 14px;
    }

    /* Premium Item Mobile Fixes */
    .premium-pro-item {
        border-radius: 12px;
    }

    .premium-info {
        padding: 10px;
    }

    .premium-name {
        margin: 0 0 10px 0;
    }

    .premium-name a {
        font-size: 13px;
        line-height: 1.3;
    }

    .premium-price-badge {
        padding: 4px 10px;
        top: 6px;
    }

    .premium-price-badge .price-val {
        font-size: 14px;
    }

    .premium-price-badge .price-currency {
        font-size: 10px;
    }

    .premium-btn {
        padding: 10px 4px;
        font-size: 12px;
        border-radius: 8px;
    }

    .premium-btn i {
        margin-right: 2px;
    }

    .button_view_detail {
        padding: 10px 4px;
        font-size: 12px;
        border-radius: 8px;
    }

    /* iOS 13 Banner Fallbacks - Mobile (480px) */
    .canh-dao {
        top: -9px;
        right: -7px;
        width: 144px;
    }

    .header {
        top: 11px;
        left: 24px;
    }

    .title-gold {
        font-size: 27px;
        letter-spacing: 1px;
    }

    .subtitle-white {
        font-size: 15px;
        letter-spacing: 0px;
        margin-top: 0px;
    }

    .main-content {
        top: 70px;
        left: 18px;
    }

    .promo-item {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .check-icon {
        width: 22px;
        height: 22px;
        margin-right: 8px;
        font-size: 11px;
    }

    .arrow {
        margin: 0 4px;
        font-size: 13px;
    }

    .action-buttons {
        top: 165px;
        left: 20px;
        gap: 12px;
    }

    .buy-now-btn,
    .guide-btn {
        font-size: 13px;
        padding: 5px 11px;
        border-radius: 22px;
    }

    .character {
        bottom: -7px;
        right: -4px;
    }

    .nhieu-xu {
        bottom: 2px;
        right: 81px;
        width: 76px;
    }

    .sparkle {
        width: 3px;
        height: 3px;
    }
}

@media (max-width:414px) {

    /* iPhone 11/12/13 Plus/Max: Move content up to prevent clipping */
    .title-gold {
        font-size: 26px;
    }

    .main-content {
        top: 67px;
    }

    .promo-item {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .action-buttons {
        top: 165px;
    }
}

/* Extra small devices to ensure button text doesn't break */
@media (max-width: 380px) {

    .premium-btn,
    .button_view_detail {
        font-size: 10px;
        padding: 8px 2px;
        letter-spacing: -0.5px;
    }

    .premium-price-badge {
        padding: 3px 6px;
    }

    .premium-price-badge .price-val {
        font-size: 12px;
    }

    .premium-name a {
        font-size: 12px;
    }

    /* iOS 13 Banner Fallbacks - Small Mobile (380px) */
    .canh-dao {
        width: 110px;
    }

    .header {
        top: 15px;
        left: 18px;
    }

    .title-gold {
        font-size: 19px;
        letter-spacing: 0.5px;
    }

    .subtitle-white {
        font-size: 11px;
    }

    .main-content {
        top: 60px;
        left: 14px;
    }

    .promo-item {
        font-size: 9px;
        margin-bottom: 7px;
    }

    .check-icon {
        width: 15px;
        height: 15px;
        margin-right: 4px;
        font-size: 8px;
    }

    .action-buttons {
        top: 145px;
        left: 15px;
        gap: 6px;
    }

    .buy-now-btn,
    .guide-btn {
        font-size: 9px;
        padding: 4px 6px;
        border-radius: 12px;
    }

    .character {
        bottom: -5px;
        right: -3px;
    }

    .nhieu-xu {
        bottom: 2px;
        right: 60px;
        width: 55px;
    }
}

/* ============================================================
   ★ CHECKOUT BAR - MOBILE RESPONSIVE ★
   ============================================================ */
@media (max-width: 768px) {
    .checkout_bar {
        left: 0;
        right: 0;
        border-radius: 18px 18px 0 0;
        padding: 12px 14px;
    }

    .checkout_box {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-bottom: 10px;
    }

    .checkout_box>*:not(:last-child) {
        margin-bottom: 6px;
    }

    .checkout_selected {
        font-size: 15px;
    }

    /* Selected names: wrap to multiple lines */
    .selected_names {
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 4px;
    }

    .selected_names>*:not(:last-child) {
        margin-right: 4px;
    }

    .selected_name_tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Price row */
    .checkout_price_row {
        margin-top: 2px;
    }

    .price_old {
        font-size: 14px;
    }

    .saving {
        font-size: 12px;
        padding: 2px 5px;
    }

    /* Payment total: inline with left info */
    .checkout_payment {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .checkout_payment .label {
        font-size: 11px;
        margin-right: 8px;
    }

    .price_final {
        font-size: 22px;
    }

    /* Button */
    .btn_checkout {
        font-size: 16px;
        padding: 12px;
    }
}

/* ============================================================
   ★ VIDEO GUIDE BUTTON ★
   ============================================================ */
.btn-guide-video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #979797;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-guide-video:hover {
    background: #e65100;
    color: #fff;
    text-decoration: none;
}

.btn-guide-video i {
    margin-right: 8px;
    font-size: 24px;
}

@keyframes pulse-video-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 90, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 90, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 90, 0, 0);
    }
}

@media (max-width: 768px) {
    .btn-guide-video {
        font-size: 9px;
        padding: 10px 10px;
    }

    .btn-guide-video i {
        font-size: 15px;
    }


}

/* ============================================================
   ★ HOME TEXT FRAME (main-content-first) ★
   ============================================================ */

.main-content-first img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* ============================================================
   ★ FIXED ACTION BUTTONS ★
   ============================================================ */
.fixed-action-btns {
    position: fixed;
    right: 20px;
    bottom: 30%;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fixed-action-btns>*:not(:last-child) {
    margin-bottom: 15px;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.action-btn:hover {
    /* transform: scale(1.1); */
    color: #fff;
}

.action-btn.payment-btn {
    background: #ff5a00;
}

.action-btn.tracking-btn {
    background: #4caf50;
}

.action-btn.tracking-btn:focus,
.action-btn.tracking-btn:active {
    color: #fff;
}

.btn-tooltip {
    position: absolute;
    right: 75px;
    background: #33333396;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #33333396;
}

/* Continuously appearing and disappearing tooltip */
@keyframes blinkTooltip {

    0%,
    100% {
        opacity: 0;
        transform: translateX(10px);
    }

    10%,
    30% {
        opacity: 1;
        transform: translateX(0);
    }

    40%,
    90% {
        opacity: 0;
        transform: translateX(10px);
    }
}

.tooltip-blink {
    animation: blinkTooltip 4s infinite;
}

.action-btn:hover .btn-tooltip {
    opacity: 1;
    transform: translateX(0);
    animation: none;
}

/* ============================================================
   ★ BREADCRUMB STYLES ★
   ============================================================ */
.bg-breadcrumb {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
    padding: 15px 0;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.05);
    border: 1px solid rgba(255, 218, 117, 0.5);
    margin-top: 20px;
    border-left: none;
    border-right: none;
}

.bg-breadcrumb .container {
    padding: 0 20px;
}

.bg-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    list-style: none;
    border-radius: 0;
    flex-wrap: wrap;
}

.bg-breadcrumb .breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 15px;
}

.bg-breadcrumb .breadcrumb li+li::before {
    content: "\f105";
    /* FontAwesome angle-right */
    font-family: FontAwesome;
    padding: 0 12px;
    color: #ff9800;
    font-size: 16px;
    font-weight: bold;
}

.bg-breadcrumb .breadcrumb li a {
    color: #ff5a00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.bg-breadcrumb .breadcrumb li a i {
    margin-right: 6px;
    font-size: 16px;
}

.bg-breadcrumb .breadcrumb li a:hover {
    color: #e65100;
    transform: translateY(-1px);
}

.bg-breadcrumb .breadcrumb li:last-child a {
    pointer-events: none;
    color: #555;
    font-weight: 600;
}

@media (max-width: 768px) {
    .bg-breadcrumb {
        padding: 8px 0;
        margin-top: 10px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .bg-breadcrumb .breadcrumb li {
        font-size: 13px;
    }

    .bg-breadcrumb .breadcrumb li+li::before {
        padding: 0 8px;
    }
}

/* Payment Success Modern */
.payment-success-modern {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 16px;
    border: 1px dashed #10b981;
    margin: 1.5rem 1rem;
}

.success-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.success-title {
    color: #064e3b;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-result-box {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 12px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #e2e8f0;
}

.product-result-box>*:not(:last-child) {
    margin-right: 12px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.7rem;
    /* Increased significantly */
    font-weight: 700;
    transition: all 0.3s ease;
}

.result-badge>*:not(:last-child) {
    margin-right: 10px;
}

.result-badge i {
    font-size: 1.8rem;
    /* Increased */
}

.badge-date {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-number {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.result-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.success-description {
    color: #065f46;
    font-size: 1.6rem;
    /* Increased to stay above body 1.5rem */
    margin-bottom: 2.5rem;
}

.order-status-badge-success {
    font-weight: 600;
    font-size: 1.4rem;
}

/* ============================================================
   ★ PREMIUM TRANSACTION HISTORY UI ★
   ============================================================ */
.transaction-history-wrapper.modern-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    margin-top: 2.5rem;
    /* Increased from 2rem */
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.card-header-modern {
    padding: 5px 0;
    /* Increased */
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header-modern>*:not(:last-child) {
    margin-right: 15px;
}

.card-header-modern .step-badge {
    width: 50px;
    /* Increased */
    height: 50px;
    /* Increased */
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    /* Increased */
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.card-header-modern .checkout-title {
    margin: 0;
    font-size: 2.2rem;
    /* Increased */
    /* Larger Title */
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card-header-modern .checkout-title>*:not(:last-child) {
    margin-right: 10px;
}

.search_form_main .card-header-modern .checkout-title {
    justify-content: center;
}

.result-history .alert {
    border-radius: 12px;
    padding: 24px 28px;
    /* Increased */
    margin-bottom: 10px;
    /* Increased */
    font-size: 1.7rem;
    /* Increased */
    /* Larger Font */
    line-height: 1.7;
    display: block;
    align-items: center;
    gap: 15px;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.result-history .alert-primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
}

.result-history .alert-primary strong {
    color: #1d4ed8;
    font-weight: 900;
}

.result-history .table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.result-history .table thead th {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.3rem;
    /* Increased */
    /* Larger header */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 18px 20px;
    /* Increased */
    border-bottom: 2px solid #f1f5f9;
}

.result-history .table tbody tr {
    transition: all 0.3s ease;
    background: #f8fafc;
}

.result-history .table-hover tbody tr:hover {
    background: #f1f5f9 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.result-history .table tbody td {
    padding: 24px 20px;
    /* Increased */
    /* More padding */
    border: none;
    vertical-align: middle;
    color: #334155;
    font-size: 1.6rem;
    /* Increased */
    /* Larger cell font */
}

.result-history .table tbody tr td:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.result-history .table tbody tr td:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Success State Row */
.result-history .table tbody tr.success {
    background: linear-gradient(to right, #f0fdf4, #ffffff) !important;
    border-left: 5px solid #10b981;
}

.result-history .table tbody tr.success td {
    color: #166534;
}

.result-history .table tbody tr.success .status {
    color: #059669;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.result-history .table tbody tr.success .status>*:not(:last-child) {
    margin-right: 8px;
}

.result-history .table tbody tr.success .status::before {
    content: "✓";
    background: #10b981;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Error State Row */
.result-history .table tbody tr.danger,
.result-history .table tbody tr.error {
    background: linear-gradient(to right, #fef2f2, #ffffff) !important;
    border-left: 5px solid #ef4444;
}

.result-history .table p {
    margin: 0;
    font-weight: 900;
    color: #1e293b;
    font-size: 1.75rem;
    /* Increased from 1.45rem */
    /* Larger card/seri text */
}

.checkout-form-box form.form-group.cart button {
    margin-top: 0 !important;
}

.transaction-history-wrapper.unactive {
    display: none !important;
}

.transaction-history-wrapper.active {
    display: block !important;
}

/* Responsive Table */
@media (max-width: 768px) {
    .transaction-history-wrapper {
        border-radius: 15px;
    }

    .transaction-history-wrapper.modern-card {
        margin-top: 1.5rem;
    }

    /* Style Alert on mobile */
    .transaction-history-wrapper .result-history .alert {
        display: block;
        text-align: center;
        padding: 15px;
        font-size: 1.4rem;
        line-height: 1.6;
    }

    /* Table to Card layout */
    .transaction-history-wrapper .result-history .table,
    .transaction-history-wrapper .result-history .table tbody,
    .transaction-history-wrapper .result-history .table tr,
    .transaction-history-wrapper .result-history .table td {
        display: block;
        width: 100%;
    }

    .transaction-history-wrapper .result-history .table thead {
        display: none;
    }

    .transaction-history-wrapper .result-history .table tbody tr {
        margin-bottom: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 15px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "col1 col3"
            "col2 col4";
        gap: 8px 12px;
        background: #fff;
    }

    .transaction-history-wrapper .result-history .table tbody td {
        border: none;
        padding: 0 !important;
        text-align: left !important;
        border-radius: 0 !important;
    }

    /* Column 1: Mã thẻ / seri */
    .transaction-history-wrapper .result-history .table tbody td:nth-child(1) {
        grid-area: col1;
        display: flex;
        flex-direction: column;
    }

    .transaction-history-wrapper .result-history .table tbody td:nth-child(1) p {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }

    /* Column 2: Thẻ / giá */
    .transaction-history-wrapper .result-history .table tbody td:nth-child(2) {
        grid-area: col2;
        display: flex;
        flex-direction: column;
    }

    .transaction-history-wrapper .result-history .table tbody td:nth-child(2) p {
        font-size: 1.3rem;
        color: #64748b;
        font-weight: 700;
        margin-bottom: 2px;
    }

    /* Column 3: Trạng thái */
    .transaction-history-wrapper .result-history .table tbody td:nth-child(3) {
        grid-area: col3;
        text-align: right !important;
        display: flex;
        justify-content: flex-end;
    }

    .transaction-history-wrapper .result-history .table tbody td:nth-child(3) .status {
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 1.2rem;
    }

    /* Column 4: Thời gian */
    .transaction-history-wrapper .result-history .table tbody td:nth-child(4) {
        grid-area: col4;
        text-align: right !important;
        color: #94a3b8;
        font-size: 1.2rem;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }


    .card-header-modern {
        padding: 5px 0;
        gap: 5px;
    }

    .card-header-modern>*:not(:last-child) {
        margin-right: 5px;
    }

    .card-header-modern .step-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .card-subtitle {
        font-size: 12px;
    }

    .payment-page-wrapper {
        background: #fff;
    }

    .payment-page-wrapper>div {
        margin-top: 0 !important;
    }

    .checkout-form-box form .send-info.form-group {
        margin-bottom: 0;
    }

    .checkout-form-box form .form-field-modern {
        margin-bottom: 5px !important;
    }

    .checkout-form-box form .warning-box {
        font-size: 11px;
    }

    .checkout-form-box form.form-group.cart button {
        font-size: 14px;
        padding: 10px 12px !important;
    }

    .send-info button {
        padding: 10px 12px !important;
        border-radius: 4px;
    }

    .product-item {
        padding: 5px 6px;
        margin-bottom: 5px;
    }

    .product-item .new-price {
        font-size: 12px;
    }

    .add-product-box {
        margin-top: 10px;
    }

    .checkout-summary-box {
        margin-top: 10px;
        padding: 10px 12px;
    }

    .transaction-history-wrapper.modern-card {
        margin-top: 1.5rem;
    }

    .sidebar-section-modern {
        margin-bottom: 1.5rem;
    }

    .payment-page-wrapper {
        padding-bottom: 0 !important;
    }

    .img-banner-home1 {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 400px) {
    .card-subtitle {
        font-size: 11px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   ★ PHONE INPUT GROUP COMPACT ★
   ============================================================ */
.form-field-modern {
    margin-bottom: 12px !important;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.phone-input-group:focus-within {
    border-color: #ff5a00;
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.12);
}

.phone-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    color: #ff5a00;
    font-size: 16px;
    background: #fff8f5;
    border-right: 1.5px solid #e2e8f0;
    height: 100%;
    min-height: 42px;
    flex-shrink: 0;
}

.phone-input-icon i {
    width: 20px;
    text-align: center;
}

.phone-compact-input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    height: 42px !important;
    flex: 1;
    background: transparent !important;
}

/* Đảm bảo select trong group cũng đẹp */
select.phone-compact-input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 35px !important;
}

/* ============================================================
   ★ ITEM BUTTON ROW ★
   ============================================================ */
.item-btn-row {
    display: flex;
    align-items: stretch;
}

.item-btn-row .premium-btn {
    margin-right: 6px;
}

.item-btn-row>*:not(:last-child) {
    margin-right: 6px;
}

.item-btn-row .premium-btn-container,
.item-btn-row .purchased-display-badge {
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
}

/* Bỏ margin-bottom khi trong row */
.item-btn-row .premium-btn,
.item-btn-row .button_view_detail {
    margin-bottom: 0;
}

/* Nút premium-btn cần chiếm toàn bộ chiều cao */
.item-btn-row .premium-btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-btn-row .button_view_detail {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #4caf50;
    border: 1px solid #4caf50;
    color: #fff;
}

.search_form_main .checkout-form-box {
    max-width: 600px;
    margin: 0 auto;
}

/* --- DRIVER.JS POPOVER STYLING --- */
.driver-popover {
    background-color: #ffffff !important;
    border-radius: 15px !important;
    padding: 24px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
    border: 2px solid #ff5a00 !important;
    max-width: 350px !important;
}

.driver-popover-title {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #ff5a00 !important;
    margin-bottom: 12px !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    line-height: 1.2 !important;
}

.driver-popover-description {
    font-size: 16px !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

.driver-popover-next-btn,
.driver-popover-prev-btn,
.driver-popover-close-btn {
    text-shadow: none !important;
    padding: 10px 20px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
}

.driver-popover-next-btn {
    background: linear-gradient(135deg, #ff5a00 0%, #ff8c00 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.3) !important;
}

.driver-popover-next-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(255, 90, 0, 0.4) !important;
    filter: brightness(1.1) !important;
}

.driver-popover-prev-btn {
    background-color: #f3f4f6 !important;
    color: #6b7280 !important;
    margin-right: 8px !important;
}

.driver-popover-prev-btn:hover {
    background-color: #e5e7eb !important;
    color: #374151 !important;
}

.driver-popover-progress-text {
    color: #9ca3af !important;
    font-weight: 600 !important;
    margin-right: 15px !important;
}

.driver-popover-arrow {
    border-color: #ff5a00 !important;
}

@media (max-width: 576px) {
    .item-btn-row .button_view_detail {
        flex: 0 0 35px;
    }

    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .btn-tooltip {
        right: 55px;
        font-size: 11px;
        padding: 5px 10px;
    }

    .remove-product {
        font-size: 12px;
        width: 25px;
        height: 25px;
    }

    .checkout-form-box form .warning-box {
        padding: 5px 10px;
    }

    .summary-row {
        padding: 4px 0;
    }

    .summary-divider {
        margin: 5px 0;
    }

    .result-badge {
        padding: 8px 10px;
        font-size: 1.3rem;
    }

    .fixed-action-btns {
        right: 5px;
    }

    .product-result-box {
        margin-top: 5px;
        padding-top: 5px;
    }

    .payment-success-modern {
        padding: 1rem;
    }
    .select-wrapper {
        margin-right: 0;
        margin-bottom: 8px;
    }
}