/* --- START OF FILE public/css/brand-selection-ui.css --- */

/* Modal Content Nâng Cao (ĐÃ CẬP NHẬT) */
#categoryChoiceModal .modal-content,
#alertModal .modal-content {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border: none;
    position: relative;
    padding: 35px 45px;
    /* THAY ĐỔI: Bóng đổ màu cam */
    box-shadow: 0 0 40px rgba(255, 153, 0, 0.6), inset 0 0 20px rgba(255, 153, 0, 0.4);
    overflow: hidden;
    border-radius: 12px;
}

/* THAY ĐỔI: Hiệu ứng viền xoay cam/vàng */
#categoryChoiceModal .modal-content::before,
#alertModal .modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-glow));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin-glow 4s linear infinite;
    pointer-events: none;
}

@keyframes spin-glow {
    to { transform: rotate(360deg); }
}

/* THAY ĐỔI: Lưới nền modal màu cam */
#categoryChoiceModal .modal-content::after,
#alertModal .modal-content::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--primary-red), transparent 50%),
                linear-gradient(to bottom, var(--primary-red), transparent 50%),
                linear-gradient(to left, var(--primary-red), transparent 50%),
                linear-gradient(to bottom, var(--primary-red), transparent 50%),
                linear-gradient(to right, var(--primary-red), transparent 50%),
                linear-gradient(to top, var(--primary-red), transparent 50%),
                linear-gradient(to left, var(--primary-red), transparent 50%),
                linear-gradient(to top, var(--primary-red), transparent 50%);
    background-repeat: no-repeat;
    background-size: 30px 2px, 2px 30px;
    background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
    pointer-events: none;
    animation: pulse-corners-modal 3s infinite ease-in-out;
}

@keyframes pulse-corners-modal {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

#categoryChoiceModal h3,
#alertModal h3 {
    font-size: 1.5em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Style cho nút chọn loại game (ĐÃ CẬP NHẬT) */
.category-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.3em !important;
    padding: 18px 15px !important;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--secondary-red);
}

.category-button:hover {
    box-shadow: 0 0 25px rgba(255, 153, 0, 0.8);
    border-color: var(--primary-red);
}

.category-button::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 20%; height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.5s ease;
}

.category-button:hover::after {
    left: 130%;
    opacity: 1;
}

/* Animation icon nảy */
.category-button img {
    height: 56px;
    width: auto;
    animation-name: icon-bounce-glow;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes icon-bounce-glow {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); }
    50% { transform: translateY(-8px); filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); }
}

#select-nohu-btn img { animation-delay: 0s; }
#select-banca-btn img { animation-delay: 1.5s; }

/* Style cho nút đóng trong alertModal */
#alertModal .close-btn {
    color: #fff;
    text-shadow: 0 0 5px var(--primary-red);
}

#alertModal .close-btn:hover,
#alertModal .close-btn:focus {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
}