.ratio-9x16 {
    aspect-ratio: 9 / 16;
    width: 100%;
}

.flow {
    display: flex;
    flex-wrap: wrap;
}

:root {
    /* 🌄 Màu nền & bề mặt */
    --color-background-rgb: 120, 10, 20;
    /* Đỏ đậm (#E5391C) – nền header/footer */
    --color-surface-rgb: 120, 10, 20;
    /* Cam trung (#FF6E1A) – block, hover */
    /* Hex tiện dùng */
    --color-background: #E5391C;
    /* Đỏ chủ đạo */
    --color-surface: #FF6E1A;
    /* Cam rực */
    /* 🔥 Màu chính & nhấn */
    --color-primary: #8B0000;
    /* Cam vàng sáng (vòng nguyệt quế) */
    --color-accent: #F9B53C;
    /* Vàng nhạt, dùng làm màu phụ/hover */
    --color-highlight: #FFD700;
    /* Vàng chói – nhấn mạnh nhất */
    /* ✨ Màu chữ & nền sáng */
    --color-light: #FFF6E9;
    /* Nền sáng dịu (trắng pha vàng) */
    --color-text: #3C0A00;
    /* Nâu đỏ đậm, tương phản tốt */
    --color-gradient: linear-gradient(90deg, #FFA027, #FF6E1A, #E5391C);
}

/* Văn bản */
body>footer {
    position: absolute;
    bottom: 0px;
    width: 100%;
    z-index: 9;
}

body {
    position: relative;
    padding-bottom: 30px;
    min-height: 100vh !important;
}

.messenger-bubble {
    padding: 2px;
    background: white;

    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 30px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    z-index: 9999;

    transition: all .25s ease;
    text-decoration: none;
}

.messenger-bubble:hover {
    transform: scale(1.12);
    background: #006fe6;
}

@media (max-width: 767px) {
    .messenger-bubble {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 20px;
    }

    .chat-badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

/* Badge đỏ */
.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;

    background: red;
    color: white;

    width: 20px;
    height: 20px;

    border-radius: 50%;
    font-size: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    border: 2px solid white;
}

.chat-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Animation rung nhẹ */
@keyframes shake {

    0% {
        transform: rotate(0deg);
    }

    2% {
        transform: rotate(5deg);
    }

    4% {
        transform: rotate(-5deg);
    }

    6% {
        transform: rotate(5deg);
    }

    8% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.shake-animation {
    animation: shake 10s ease-in-out infinite;
}



/* ===== FIX BACKDROP (QUAN TRỌNG NHẤT) ===== */
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(6px);
}

/* ===== MODAL TRONG SUỐT ===== */
#donateModal .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#donateModal .modal-body {
    background: transparent !important;
}

/* ===== IMAGE ===== */
.donate-img {
    transition: all 0.35s ease;
    border-radius: 12px;
    cursor: pointer;
}

.donate-img:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ===== ZOOM FIX (DÙNG CLASS THAY VÌ .show) ===== */
#donatePreview {
    max-height: 80vh;
    border-radius: 12px;
    max-width: 95vw;
    width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

#donatePreview.active {
    transform: scale(1);
    opacity: 1;
}


/* Title giữ màu vàng */
.footer-title {
    color: #ffc107;
}

/* SVG icon cùng màu với title */
.footer-icon {
    color: #ffc107;
}

.footer-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    /* quan trọng */
}

/* Copyright màu trắng */
.footer-copy {
    color: #ffffff !important;
    opacity: 0.9;
}

/* Hover đẹp hơn */
.footer-icon:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
}

/* mặc định mobile: 1 cột */
#support .row.g-3.justify-content-center>.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

#support img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* từ tablet trở lên: 2 cột */
@media (min-width: 576px) {
    #support .row.g-3.justify-content-center>.col-12 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}


/* full chiều cao */
/* Thiết lập Flexbox cho thẻ body */
/* Cố định phần div bọc footer */
#footer {
    position: fixed;
    background: rgba(5, 11, 20, 0.85) !important;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 999;
    /* Đảm bảo footer đè lên các nội dung khác */
}

/* Bạn sẽ cần thêm padding-bottom cho body để nội dung cuối cùng không bị footer che mất */
body {
    padding-bottom: 80px;
    /* Điều chỉnh con số này theo chiều cao thực tế của footer */
}

/* 1. Định dạng khi Accordion ĐANG MỞ (Active) */
/* Header nền đen hiện đại */
/* Nền giữ nguyên đen */
.accordion-button {
    background: linear-gradient(135deg, #0f0f0f, #1c1c1c);
    color: #ccc;
    transition: all 0.25s ease;
}

/* Hover -> vàng nhẹ */
.accordion-button:hover {
    color: #ffcc00;
}

/* 🔥 Active -> vàng giống logo */
.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #0f0f0f, #1c1c1c);
    color: #ffd700;
    font-weight: 600;
}

/* Icon */
.accordion-button::after {
    filter: invert(1);
}

/* Icon khi active -> vàng */
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(78%) sepia(90%) saturate(500%) hue-rotate(5deg);
}

/* Remove focus */
.accordion-button:focus {
    box-shadow: none;
}

.btn {
    word-break: normal !important;
    overflow-wrap: break-word !important;
}