:root {
    --may-navy: #1a3352;
    --may-gold: #c8a45d;
    --may-green: #4caf50;
    --may-purple: #6f42c1;
}

.summary-section {
    background-color: #f9f9f9;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border: 1px solid #f1f1f1;
}

.carousel-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffffe6;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 2px 8px #00000026;
    transition: all .3s ease;
    cursor: pointer;
}

.download-btn i {
    color: #009ef7;
}

.share-btn i {
    color: #10b981;
}

.btn-heart-unit.text-danger .bi-heart-fill{
    color: #dc3545;
}

@keyframes fire-glow {
    from { box-shadow: 0 0 5px #ff4d4d, inset 0 0 2px #ff4d4d; }
    to { box-shadow: 0 0 15px #ff8c00, inset 0 0 8px #ff8c00; }
}

/* 2. Hiệu ứng chữ chạy đặc biệt (Marquee Container) */
.hot-deal-marquee-container {
    width: 100%;
    background: rgba(127, 15, 39, 0.95);
    padding: 8px 0;
    overflow: hidden;
    border-top: 2px solid #ff4d4d;
    border-bottom: 2px solid #ff4d4d;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: seamless-marquee 30s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#hotCodesList .badge,
#hotCodesListClone .badge {
    display: flex;
    justify-content: center;
    font-size: 0.95rem;
    min-width: 85px;
    animation: hotPulseGlow 1.8s ease-in-out infinite alternate;
    border: 2px solid #fff; /* Viền trắng để nổi hơn */
}

@keyframes hotPulseGlow {
    0% {
        box-shadow: 0 0 8px rgba(255, 77, 77, 0.8),
        0 0 15px rgba(255, 102, 102, 0.6) inset;
        transform: scale(1);
        background-color: #dc143c;
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 77, 77, 1),
        0 0 30px rgba(255, 153, 153, 0.8),
        0 0 40px rgba(255, 102, 102, 0.6) inset;
        transform: scale(1.05);
        background-color: #ff1744;
    }
}

/* Thêm hiệu ứng rung nhẹ khi hover */
#hotCodesList .badge:hover,
#hotCodesListClone .badge:hover {
    animation: hotPulseGlow 0.8s ease-in-out infinite alternate,
    slightShake 0.5s ease-in-out infinite;
    transform: scale(1.1);
}

@keyframes slightShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-2deg); }
    75% { transform: translateX(3px) rotate(2deg); }
}

/* Responsive: mobile chậm hơn */
@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 30s;
    }
    .fire-text {
        font-size: 1rem;
    }
    #hotCodesList .badge,
    #hotCodesListClone .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* 3. Hiệu ứng Chữ Rực Lửa (Fire Text) */
.fire-text {
    font-family: sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    /* Tạo màu lửa */
    color: #fff;
    text-shadow:
            0 0 5px #fff,
            0 -2px 10px #ff0,
            2px -5px 15px #ff8000,
            -2px -12px 20px #f00;
    animation: flicker 0.1s infinite alternate;
}

@keyframes flicker {
    0% { transform: skewX(0.5deg); opacity: 0.9; }
    100% { transform: skewX(-0.5deg); opacity: 1; }
}

@keyframes seamless-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 4. Icon Bi-Fire Động */
.bi-fire {
    color: #ff8c00;
    font-size: 1.1rem;
    animation: flame-move 0.5s infinite alternate;
}
.burning-badge-text {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #d81010; /* Chuyển màu chữ sang Đỏ */
    display: flex;
    align-items: center;
    gap: 5px;
    /* Hiệu ứng bóng đỏ tạo cảm giác lửa bốc lên trên nền trắng */
    text-shadow:
            1px 1px 0px #fff,
            0 -2px 4px #ffcccc,
            0 -4px 8px #ff8080,
            0 -8px 12px #ff0000;
    animation: flame-flicker 0.15s infinite alternate;
}

/* 2. Badge chứa Hot Deal - Nền Trắng rực rỡ */
.burning-badge {
    background: #ffffff; /* Đổi sang nền trắng */
    padding: 3px 15px;
    border-radius: 6px;
    position: relative;
    border: 2px solid #ffffff; /* Viền đỏ dày hơn để nổi bật */
    display: flex;
    align-items: center;
    overflow: visible;
    /* Hiệu ứng hào quang đỏ lan tỏa trên nền trắng */
    animation: fire-glow-white-bg 1.2s infinite alternate, wave-move 2s ease-in-out infinite;
}

/* 3. Icon lửa đỏ rực */
.fire-icon-red {
    color: #d81010 !important;
    filter: drop-shadow(0 0 2px #ff8080) !important;
    font-size: 1.3rem !important;
    animation: flame-rise 0.6s infinite alternate;
}

/* --- ANIMATIONS HIỆU CHỈNH CHO NỀN SÁNG --- */

/* Hào quang đỏ nhấp nháy trên nền trắng */
@keyframes fire-glow-white-bg {
    from {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.2), inset 0 0 5px rgba(255, 0, 0, 0.1);
        border-color: #ff4d4d;
    }
    to {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), inset 0 0 8px rgba(255, 0, 0, 0.2);
        border-color: #b30000;
    }
}

/* Các animation lượn lờ giữ nguyên nhưng tinh chỉnh nhẹ */
@keyframes flame-flicker {
    0% { transform: skewX(-1.5deg); filter: brightness(1); }
    100% { transform: skewX(1.5deg); filter: brightness(1.4); }
}

@keyframes wave-move {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-4px) rotate(1deg); }
}

@keyframes flame-rise {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    100% { transform: translateY(-5px) scale(1.2); opacity: 1; }
}

/* Hiệu ứng hào quang đỏ nhấp nháy xung quanh */
@keyframes fire-glow-red {
    from { box-shadow: 0 0 8px #ff0000, inset 0 0 4px #4d0000; }
    to { box-shadow: 0 0 18px #ff4d4d, inset 0 0 8px #990000; }
}

.burning-badge {
    animation: fire-glow-red 1.2s infinite alternate, wave-move 2s ease-in-out infinite;
}
/* Pause khi hover */
.hot-deal-marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Các style cũ giữ nguyên */
.badge-light-info.exclusive {
    background-color: #ff0000;
    color: #fff;
}

.badge-light-info.hidden {
    background-color: #a77b00;
    color: #fff;
}

.badge-light-info.cross {
    background-color: #fd7e14;
    color: #fff;
}

.badge-light-info.bonus {
    background-color: #03fc56;
    color: #fff;
}

.btn-lock-apartment {
    background-color: #e74c3c !important;
    color: #fff !important;
    border: none;
}

.btn-lock-apartment:hover,
.btn-lock-apartment:focus {
    background-color: #c0392b !important;
    color: #fff !important;
}

.modal .modal-content {
    box-shadow: rgba(255, 255, 255, 0.35) 0px 5px 15px;
}

.js-status {
    font-weight: bold;
    transition: color 150ms ease-in-out;
}

.status-blink {
    animation: blink-glow 1.2s infinite alternate;
}

@keyframes blink-glow {
    0% {
        text-shadow: 0 0 5px #ffc107, 0 0 10px #ffea00;
    }

    100% {
        text-shadow: 0 0 15px #ffea00, 0 0 25px #fff200;
    }
}

.disabled-link {
    pointer-events: none;
}

@keyframes animate-jump-up {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes attention-pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
        color: #000;
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

h6>a.js-price-list {
    display: inline-block;
    animation: attention-pulse 2s infinite ease-in-out;

    will-change: transform, text-shadow;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    font-weight: 700;
    padding: 2px 5px;
    text-decoration: none;
}

.contact-phone a[href*="tel:"] {
    animation: animate-jump-up 1.5s infinite ease-in-out;
    animation-delay: 0.25s;
}

.contact-phone a[href*="zalo.me"] {
    animation: animate-jump-up 1.5s infinite ease-in-out;
    animation-delay: 0.75s;
}

/* --- STYLE MỚI QUAN TRỌNG: ẨN ĐƠN VỊ --- */
/* Khi modal body có class 'unit-hidden', ẩn các thẻ span chứa đơn vị (class js-price-unit) */
.unit-hidden .js-price-unit {
    color: transparent !important;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    user-select: none;
    pointer-events: none;
}

.modal-header {
    cursor: move;
    user-select: none;
}

.modal-header .btn,
.modal-header .form-check,
.modal-header input,
.modal-header label {
    cursor: pointer;
}
.loan-calc-button,
.link-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all .2s ease;
    min-height: 32px;
    color: #6b7280;
    background-color: #f9f9f9;
    border: 1px solid #f1f1f1;
    cursor: pointer;
}

.link-actions{
    display: flex;
    align-items: center;
    gap: 6px;
}
.link-label{
    font-size: .875rem;
    font-weight: 500;
    color: #03304d;
    margin-right: auto;
}
.link-separator{
    width: 1px;
    height: 16px;
    background-color: #d1d5db;
    display: block;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    transition: all .2s ease;
    font-size: .938rem;
}

.link-icon:hover {
    color: #03304d;
    background-color: #dce8ff;
}
/* Fix scroll khi có nhiều modal chồng */
body.modal-open { overflow: hidden; padding-right: 0 !important; }
.modal-backdrop.show { opacity: 0.5; }

/* Modal chính */
#loanCalcModal { z-index: 1060; }
#loanCalcModal .modal-content { border-radius: 16px; border: none; overflow: hidden; max-height: 95vh; }

.heading-loan{
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}
.border-end-lg{
    border-right: 1px solid #e9ecef;
}

.sticky-calc-footer{
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-quaternary {
    background-color: #04304d !important;
    color: #fff !important;
    border-radius: .75rem;
}

.d-md-table-cell {
    display: table-cell !important;
}

/* Responsive table */
.table-detail { font-size: 0.9rem; }
@media (max-width: 768px) {
    .table-detail { font-size: 0.8rem; }
    .table-detail th, .table-detail td { padding: 8px 6px; }
}

/* Result cards */
.result-card {
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}
.result-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important; }

/* Progress bars */
.progress { height: 10px; border-radius: 10px; background-color: #f1f3f5; }
.progress-bar { border-radius: 10px; }

/* Phase headers */
.phase-header-prefer { background: #fff8e1 !important; color: #d97706; font-weight: bold; }
.phase-header-floating { background: #f3f0ff !important; color: #5b21b6; font-weight: bold; }

/* Mobile responsive */
@media (max-width: 992px) {
    #loanCalcModal .modal-dialog { margin: 10px; }
    .sticky-calc-footer { padding: 15px; }
}

#hot-reward-container {
    margin-top: 10px;
}

.hot-reward-tag {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
    overflow: hidden;
}

.hot-reward-tag .reward-icon {
    background: #dc3545;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 12px;
    font-size: 1.2rem;
    animation: gift-bounce 1s infinite alternate;
}

.hot-reward-tag .reward-content {
    display: flex;
    flex-direction: column;
}

.hot-reward-tag .reward-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #dc3545;
    letter-spacing: 1px;
}

.hot-reward-tag .reward-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a3352; /* Màu Navy đồng bộ với giao diện của bạn */
}

/* Hiệu ứng rung nhẹ cho hộp quà */
@keyframes gift-bounce {
    from { transform: scale(1); }
    to { transform: scale(1.15) rotate(5deg); }
}

/* Đường răng cưa bên trái tạo cảm giác giống Voucher */
.hot-reward-tag::after {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #f8f9fa; /* Trùng màu nền modal */
    border-radius: 50%;
    box-shadow: inset -2px 0 3px rgba(0,0,0,0.05);
}