.well {
	width: 100%;
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}

.well:last-child {
    margin-bottom: 0;
}

.danhgia {
    height: 400px;
    overflow-y: scroll;
}

.danhgiatop {
    height: 280px;
    overflow-y: scroll;
}

.danhgiatop .item {
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    padding: 10px 5px 10px 5px;
}

.danhgia .item {
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    padding: 10px 5px 10px 5px;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.danhgia .item {
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    padding: 10px 5px 10px 5px;
}

/* Thêm style cho tiêu đề các phần */
.well p b {
    color: #333;
    font-size: 16px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    display: inline-block;
}

/* Style cho top nạp tuần */
.well:nth-child(3) p b {
    border-bottom-color: #28a745;
}

/* Style cho top nạp tháng */
.well:nth-child(4) p b {
    border-bottom-color: #ffc107;
}

/* ===== STYLE MỚI CHO TOP SECTIONS ===== */

/* Header của section */
.section-header {
    text-align: center;
    margin-bottom: 12px;
    padding: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    color: white;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 2px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.section-subtitle {
    font-size: 11px;
    opacity: 0.9;
    margin: 0;
}

.previous-winner {
    font-size: 12px;
    margin: 8px 0;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.previous-winner i {
    color: #FFD700;
    margin-right: 6px;
    font-size: 12px;
}

.previous-winner strong {
    color: #2c3e50;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.winner-amount {
    color: #28a745;
    font-weight: 600;
    margin-left: 8px;
    font-size: 11px;
}

.winner-amount i {
    color: #FFD700;
    margin-right: 4px;
    font-size: 10px;
}

/* Icons trong header */
.trophy-icon, .star-icon {
    font-size: 16px;
    margin-bottom: 3px;
    /* display: block; */
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Top items styling */
.top-item {
    background: white !important;
    border-radius: 10px !important;
    border: 1px solid #e3e3e3 !important;
    padding: 12px !important;
    margin-bottom: 8px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff !important;
}

/* Rank badge styling */
.rank-badge {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 16px;
    color: white;
    margin-right: 12px;
    position: relative;
    float: left;
}

.top-1 .rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.top-2 .rank-badge {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.top-3 .rank-badge {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.top-4 .rank-badge, .top-5 .rank-badge {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.rank-number {
    position: relative;
    z-index: 2;
}

/* Icons trong rank badge */
.crown-icon, .medal-icon, .award-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 16px;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* User info styling */
.user-info {
    margin-left: 58px;
    padding-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-id {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.user-amount {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
    white-space: nowrap;
}

.coin-icon {
    color: #FFD700;
    font-size: 14px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Special effects for top 3 */
.top-1 {
    background: linear-gradient(135deg, #fff9e6, #fff3cd) !important;
    border-color: #FFD700 !important;
}

.top-2 {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-color: #C0C0C0 !important;
}

.top-3 {
    background: linear-gradient(135deg, #fff8e1, #ffecb3) !important;
    border-color: #CD7F32 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .section-header {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 15px;
        margin: 0 0 2px 0;
    }
    
    .section-subtitle {
        font-size: 11px;
    }
    
    .previous-winner {
        font-size: 11px;
        padding: 5px 10px;
        margin: 6px 0;
    }
    
    .previous-winner i {
        font-size: 11px;
        margin-right: 4px;
    }
    
    .winner-amount {
        font-size: 10px;
        margin-left: 6px;
        display: block;
        margin-top: 2px;
    }
    
    .winner-amount i {
        font-size: 9px;
    }
    
    .trophy-icon, .star-icon {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .rank-badge {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }
    
    .user-info {
        margin-left: 55px;
    }
    
    .user-id {
        font-size: 14px;
    }
    
    .user-amount {
        font-size: 16px;
    }
    
    .top-item {
        padding: 12px !important;
        margin-bottom: 10px !important;
    }
}

/* ===== FORM RECHARGE STYLES ===== */
#formRecharge {
    margin-top: 10px;
}

#formRecharge .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

#formRecharge .form-control {
    border: 1px solid #e3e3e3;
    height: 42px;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#formRecharge .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}

#formRecharge .input-group .form-control {
    border-right: 0;
    border-radius: 8px 0 0 8px;
}

#formRecharge .input-group-append .btn {
    border: 1px solid #e3e3e3;
    border-left: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
}

#formRecharge .input-group-append .btn:hover {
    filter: brightness(1.05);
}

#formRecharge select.form-control {
    height: 42px;
    border-radius: 8px;
}

#formRecharge .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(102,126,234,0.25);
}

#formRecharge .btn-primary:hover {
    filter: brightness(1.06);
}

#formRecharge .btn-primary:disabled {
    filter: grayscale(0.2);
    opacity: 0.85;
}

#formRecharge em.small.text-danger {
    display: inline-block;
    margin-top: 6px;
    color: #dc3545;
}

@media (max-width: 768px) {
    #formRecharge .form-control,
    #formRecharge select.form-control {
        height: 40px;
    }
}

/* ===== EFFECT: BOUNCE EACH CHARACTER ===== */
.game-id {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.game-id-label {
    margin-right: 6px;
    font-weight: 600;
    color: #6b7280;
}

.game-id .char {
    display: inline-block;
    will-change: transform;
    animation: char-jump 0.6s ease both;
}

@keyframes char-jump {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
    60% { transform: translateY(0); }
}
