﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/*CSS Modal BXH */
/* CSS cho modal bảng xếp hạng phong cách Gunny */
/* Modal chính */
.gunny-ranking-modal {
    background: linear-gradient(135deg, #b3e0ff, #87cefa);
    border-radius: 20px;
    border: 4px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 25px rgba(0, 153, 255, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.3);
    animation: modalPop 0.4s ease-out;
    overflow: hidden;
}

.gunny-ranking-modal {
    border-image: linear-gradient(to right, #87cefa, #b3e0ff) 1;
}

    /* Header */
    .gunny-ranking-modal .modal-header {
        font-weight: bold;
        text-align: center;
        padding: 15px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        text-shadow: 0 0 10px rgba(255, 204, 0, 0.9), 0 0 5px rgba(255, 255, 255, 0.5);
        position: relative;
        font-size: 24px;
    }

        /* Huy chương ở góc header */
        .gunny-ranking-modal .modal-header::before,
        .gunny-ranking-modal .modal-header::after {
            content: '🏅';
            position: absolute;
            top: -20px;
            font-size: 30px;
            color: #ffd700;
            text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
            animation: medalGlow 2s infinite alternate;
        }

        .gunny-ranking-modal .modal-header::before {
            left: 20px;
        }

        .gunny-ranking-modal .modal-header::after {
            right: 20px;
        }

        /* Nút đóng */
        .gunny-ranking-modal .modal-header .close {
            color: #ffcc00;
            opacity: 1;
            font-size: 28px;
            text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
            transition: all 0.3s ease;
        }

            .gunny-ranking-modal .modal-header .close:hover {
                color: #ff5555;
                transform: scale(1.2);
            }

    /* Body */
    .gunny-ranking-modal .modal-body {
        padding: 25px;
        border-radius: 15px;
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto; /* Cho phép cuộn nếu nội dung dài */
    }

    /* Dropdown */
    .gunny-ranking-modal .gunny-input {
        background: rgba(255, 255, 255, 0.9);
        border: 3px solid #ff9933;
        border-radius: 25px;
        padding: 5px;
        font-size: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 0 15px rgba(255, 153, 51, 0.4);
        color: #003366;
        font-weight: bold;
    }

        .gunny-ranking-modal .gunny-input:focus {
            border-color: #ffcc00;
            box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
            outline: none;
        }

    /* Label */
    .gunny-ranking-modal label {
        font-weight: bold;
        margin-bottom: 8px;
        display: block;
        text-shadow: 0 0 5px rgba(255, 204, 0, 0.7);
        font-size: 18px;
    }

/* Danh sách xếp hạng */
.ranking-container {
    margin-top: 20px;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.5);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #ff9933, #ff6600);
    border-radius: 25px;
    padding: 12px 15px;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .ranking-item:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 20px rgba(255, 102, 0, 0.6);
    }

    .ranking-item::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: shine 3s infinite;
        z-index: 0;
    }

    .ranking-item > * {
        position: relative;
        z-index: 1;
    }

/* Top 3 */
.top-1 {
    border-color: #ffd700;
    background: linear-gradient(90deg, #ffd700, #ffcc00);
}

.top-2 {
    border-color: #c0c0c0;
    background: linear-gradient(90deg, #c0c0c0, #a9a9a9);
}

.top-3 {
    border-color: #cd7f32;
    background: linear-gradient(90deg, #cd7f32, #b87333);
}

/* Các cột trong hàng */
.ranking-item .rank {
    width: 50px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    text-align: center;
}

.ranking-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin: 0 15px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.ranking-item .username {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 51, 102, 0.8);
    border: 2px solid #0066cc;
    border-radius: 15px;
    padding: 5px 15px;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 102, 204, 0.7);
}

.ranking-item .level {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 51, 102, 0.8);
    border: 2px solid #0066cc;
    border-radius: 15px;
    padding: 5px 15px;
    margin: 0 15px;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 102, 204, 0.7);
}

.ranking-item .score {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 51, 102, 0.8);
    border: 2px solid #0066cc;
    border-radius: 15px;
    padding: 5px 15px;
    text-align: center;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 102, 204, 0.7);
}

    /* Icon kim cương */
    .ranking-item .score::before {
        content: '💎';
        position: absolute;
        left: -25px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: #00ffcc;
        text-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
        animation: diamondGlow 2s infinite alternate;
    }

/* Footer */
.gunny-ranking-modal .modal-footer {
    background: linear-gradient(90deg, #b3e0ff, #87cefa);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Nút điều hướng */
.gunny-ranking-modal .gunny-btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 3px solid #0066cc;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.6);
    font-size: 16px;
    background: linear-gradient(90deg, #00ccff, #0066cc);
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.gunny-ranking-modal .btn-next {
    background: linear-gradient(90deg, #cc33ff, #660066);
}

.gunny-ranking-modal .gunny-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.8);
}

/* Hoạt hình */
@keyframes modalPop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes medalGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    }

    100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 1);
    }
}

@keyframes diamondGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
    }

    100% {
        text-shadow: 0 0 20px rgba(0, 255, 204, 1);
    }
}

/* Backdrop */
.modal-backdrop {
    background: rgba(0, 102, 204, 0.4);
}

/* Responsive cho các kích thước màn hình */
@media (max-width: 576px) {
    /* Modal chính */
    .gunny-ranking-modal {
        border-radius: 10px; /* Giảm border-radius trên mobile */
        border: 2px solid transparent; /* Giảm độ dày border */
        box-shadow: 0 0 15px rgba(0, 153, 255, 0.6); /* Giảm bóng */
    }

        /* Header */
        .gunny-ranking-modal .modal-header {
            padding: 10px;
            font-size: 20px;
        }

            .gunny-ranking-modal .modal-header::before,
            .gunny-ranking-modal .modal-header::after {
                font-size: 20px;
                top: -15px;
            }

            .gunny-ranking-modal .modal-header::before {
                left: 10px;
            }

            .gunny-ranking-modal .modal-header::after {
                right: 10px;
            }

            .gunny-ranking-modal .modal-header .close {
                font-size: 20px;
            }

        /* Body */
        .gunny-ranking-modal .modal-body {
            padding: 15px;
        }

        /* Dropdown */
        .gunny-ranking-modal label {
            font-size: 14px;
            margin-bottom: 5px;
        }

        .gunny-ranking-modal .gunny-input {
            font-size: 14px;
            padding: 8px;
            border: 2px solid #ff9933;
            border-radius: 15px;
            box-shadow: 0 0 10px rgba(255, 153, 51, 0.3);
        }

            .gunny-ranking-modal .gunny-input:focus {
                box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
            }

    /* Danh sách xếp hạng */
    .ranking-container {
        margin-top: 10px;
        padding: 5px;
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.4);
    }

    .ranking-list {
        gap: 10px;
    }

    .ranking-item {
        flex-wrap: wrap; /* Cho phép wrap nội dung */
        padding: 8px 10px;
        border: 2px solid #0066cc;
        border-radius: 15px;
        box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
    }

        .ranking-item:hover {
            transform: none; /* Tắt hiệu ứng scale trên mobile để tránh tràn */
            box-shadow: 0 5px 15px rgba(255, 102, 0, 0.5);
        }

        .ranking-item .rank {
            width: 40px;
            font-size: 20px;
        }

        .ranking-item .avatar {
            width: 30px;
            height: 30px;
            margin: 0 10px;
            border: 2px solid #fff;
        }

        .ranking-item .username {
            flex: 1;
            font-size: 14px;
            padding: 3px 10px;
            border: 1px solid #0066cc;
            border-radius: 10px;
            text-align: left;
        }

        .ranking-item .level {
            display: none; /* Ẩn level trên mobile để tiết kiệm không gian */
        }

        .ranking-item .score {
            font-size: 14px;
            padding: 3px 10px;
            border: 1px solid #0066cc;
            border-radius: 10px;
        }

            .ranking-item .score::before {
                left: -20px;
                font-size: 16px;
            }

    /* Footer */
    .gunny-ranking-modal .modal-footer {
        padding: 10px;
    }

    .gunny-ranking-modal .gunny-btn {
        padding: 8px 15px;
        font-size: 14px;
        border: 2px solid #0066cc;
        border-radius: 15px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    /* Modal chính */
    .gunny-ranking-modal {
        border-radius: 15px;
        border: 3px solid transparent;
        box-shadow: 0 0 20px rgba(0, 153, 255, 0.7);
    }

        /* Header */
        .gunny-ranking-modal .modal-header {
            font-size: 22px;
        }

        /* Dropdown */
        .gunny-ranking-modal label {
            font-size: 16px;
        }

        .gunny-ranking-modal .gunny-input {
            font-size: 15px;
            padding: 9px;
        }

    /* Danh sách xếp hạng */
    .ranking-item {
        padding: 10px 12px;
        border: 2px solid #0066cc;
        border-radius: 20px;
    }

        .ranking-item .rank {
            width: 45px;
            font-size: 22px;
        }

        .ranking-item .avatar {
            width: 35px;
            height: 35px;
            margin: 0 12px;
        }

        .ranking-item .username {
            font-size: 16px;
            padding: 4px 12px;
        }

        .ranking-item .level {
            font-size: 14px;
            padding: 4px 12px;
            margin: 0 12px;
        }

        .ranking-item .score {
            font-size: 14px;
            padding: 4px 12px;
        }
}

@media (min-width: 769px) {
    /* Đảm bảo modal không quá rộng */
    .modal-dialog {
        max-width: 800px;
    }
}
/*------------- */








/*ModalRegister*/
/* CSS cho modal phong cách Gunny */
.gunny-register-modal {
    background: linear-gradient(135deg, #b3d9ff, #99ccff); /* Xanh nhạt gradient */
    border-radius: 15px;
    border: 3px solid transparent; /* Viền trong suốt để dùng gradient */
    background-clip: padding-box; /* Đảm bảo nền không tràn ra viền */
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.6); /* Bóng nhẹ */
    animation: modalPop 0.3s ease-out; /* Hoạt hình mở */
}

/* Viền gradient sắc nét */
.gunny-register-modal {
    border-image: linear-gradient(to right, #99ccff, #b3d9ff) 1;
}

/* Header */
.modal-header {
    background: #99ccff;
    border-bottom: 2px solid #66b3ff;
    color: #004d99;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

    /* Nút đóng */
    .modal-header .close {
        color: #004d99;
        opacity: 1;
        font-size: 24px;
    }

        .modal-header .close:hover {
            color: #ff3333;
        }

/* Body */
.modal-body {
    padding: 20px;
}

/* Input với viền sắc nét và đẹp hơn */
.gunny-input {
    background: #fff;
    border: 2px solid #99ccff; /* Viền sắc nét */
    border-radius: 10px; /* Bo góc mềm mại */
    padding: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); /* Bóng nhẹ bên trong */
}

    .gunny-input:focus {
        border-color: #ffcc00; /* Viền đổi màu khi focus */
        box-shadow: 0 0 10px rgba(255, 204, 0, 0.4); /* Hiệu ứng glow */
        outline: none; /* Loại bỏ outline mặc định */
    }

/* Label */
label {
    color: #004d99;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* Footer */
.modal-footer {
    background: #b3d9ff;
    border-top: 2px solid #66b3ff;
    padding: 10px;
    justify-content: space-between;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Nút phong cách game */
.gunny-btn {
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Viền trong suốt */
}

.btn-secondary {
    background: #99ccff;
    color: #004d99;
}

    .btn-secondary:hover {
        background: #66b3ff;
        color: #fff;
        box-shadow: 0 0 10px rgba(102, 179, 255, 0.5);
    }

.btn-primary {
    background: #ffcc00;
    color: #333;
}

    .btn-primary:hover {
        background: #ff9900;
        color: #fff;
        box-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
    }

/* Hoạt hình mở modal */
@keyframes modalPop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Backdrop */
.modal-backdrop {
    background: rgba(0, 102, 204, 0.3);
}
/*===============ModalRegister*/




/* CSS cho modal nạp thẻ phong cách Gunny */
.gunny-recharge-modal {
    background: linear-gradient(135deg, #b3d9ff, #99ccff);
    border-radius: 15px;
    border: 3px solid transparent;
    border-image: linear-gradient(to right, #99ccff, #b3d9ff) 1;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.6);
    animation: modalPop 0.3s ease-out;
}

.modal-header {
    background: #99ccff;
    border-bottom: 2px solid #66b3ff;
    color: #004d99;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

    .modal-header .close {
        color: #004d99;
        opacity: 1;
        font-size: 24px;
    }

        .modal-header .close:hover {
            color: #ff3333;
        }

.modal-body {
    padding: 20px;
}

.recharge-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qr-section, .bank-info, .instruction, .transfer-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #99ccff;
    box-shadow: 0 0 8px rgba(0, 153, 255, 0.3);
}

.qr-code {
    width: 150px;
    height: 150px;
    display: block;
    margin: 10px auto;
    border: 2px solid #99ccff;
    border-radius: 5px;
}

.bank-info p, .transfer-content p {
    margin: 5px 0;
    color: #004d99;
}

.instruction ol {
    padding-left: 20px;
}

.instruction li {
    color: #333;
    margin-bottom: 5px;
}

.modal-footer {
    background: #b3d9ff;
    border-top: 2px solid #66b3ff;
    padding: 10px;
    justify-content: space-between;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.gunny-btn {
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-secondary {
    background: #99ccff;
    color: #004d99;
}

    .btn-secondary:hover {
        background: #66b3ff;
        color: #fff;
        box-shadow: 0 0 10px rgba(102, 179, 255, 0.5);
    }

.btn-primary {
    background: #ffcc00;
    color: #333;
}

    .btn-primary:hover {
        background: #ff9900;
        color: #fff;
        box-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
    }

@keyframes modalPop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-backdrop {
    background: rgba(0, 102, 204, 0.3);
}
.gunny-swal {
    border-radius: 15px;
    border: 3px solid #99ccff;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.6);
}

.swal2-title {
    color: #004d99;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.7);
}

.swal2-content {
    color: #333;
}