.status-progress {
    transition: width 1s ease-in-out;
    background: linear-gradient(90deg,
            #007bff 0%,
            #00c2ff 50%,
            #ff6f00 100%);
    position: relative;
    overflow: hidden;
}

.status-progress:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Server Card */
.server-card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.server-grid {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
}

.server-item {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 247, 250, 0.95) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.server-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 119, 255, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 242, 245, 1) 100%);
}

/* Server Header */
.server-header {
    display: flex;
    align-items: center;
    /* Căn giữa theo chiều dọc */
    margin-bottom: 1rem;
    min-height: 40px;
    /* Đảm bảo chiều cao tối thiểu */
}

.server-badge {
    background: linear-gradient(45deg, #007bff, #00c2ff);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-right: 10px;
}

.server-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #2d373c;
    letter-spacing: -0.5px;
    margin: 0;
    margin-left: 7px;
    /* Reset margin mặc định của thẻ h4 */
    padding: 2px 0;
    /* Thêm padding để cân bằng */
    line-height: 1.2;
    /* Điều chỉnh line-height */
    display: flex;
    align-items: center;
    /* Căn giữa nội dung */
}

.server-name span {
    display: inline-block;
    vertical-align: middle;
}


/* Time Display */
.server-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.time-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #007bff, #00c2ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.time-content {
    display: flex;
    flex-direction: column;
}

.time-label {
    font-size: 0.9em;
    color: #6c757d;
}

.time-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #2d373c;
}

/* Status Bar */
.status-bar {
    height: 6px;
    background: rgba(0, 119, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.status-progress {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, #007bff, #00c2ff);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Hover Effects */
.btn-hover-pulse:hover {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Badge trạng thái */
.status-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

.status-badge.upcoming {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #fff;
}

/* Server sắp mở */
.server-item.upcoming {
    position: relative;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.server-item.upcoming:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 152, 0, 0.05) 100%);
    z-index: -1;
}

.time-icon.upcoming {
    background: linear-gradient(45deg, #ffc107, #ff9800);
}

/* Điều chỉnh hiển thị thời gian */
.time-value {
    font-size: 1.05em;
}


/* Hiệu ứng card */
.game-card {
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

/* Hình ảnh game */
.game-icon {
    width: 120px;
    height: 120px;
    transition: transform 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.game-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Tiêu đề gradient */
.gradient-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nút CTA */
.btn-play-now {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-play-now:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.3);
}

/* Hiệu ứng badge */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Hiệu ứng nền động */
.game-card-bg {
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg,
            rgba(255, 107, 107, 0.1) 0%,
            rgba(78, 205, 196, 0.1) 100%);
    z-index: -1;
    animation: rotate-bg 20s linear infinite;
}

@keyframes rotate-bg {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Custom CSS cho phần tin tức */
.news-card {
    transition: transform 0.3s ease;
}

.news-article {
    border-bottom: 1px solid #eee;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-article:hover {
    transform: translateX(5px);
    background: linear-gradient(90deg, #f8f9fa0a 0%, #f8f9fa 100%);
}

.news-thumbnail {
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.news-title {
    font-size: 1.1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    font-size: 0.85rem;
}

/* Custom Navbar Styles */
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-8px);
}

.nav-icon-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.nav-indicator {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link.active .nav-indicator {
    opacity: 1;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-scale:hover .nav-icon-wrapper {
    transform: translateY(-3px);
}

.nav-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Footer Styles */
.brand-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: currentColor;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

.beat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 40%, 80% { transform: scale(1); }
    20%, 60% { transform: scale(1.15); }
}

/* Thêm hiệu ứng transition */
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hiệu ứng active state */
.nav-link.active {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link.active .nav-icon-wrapper {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-link.active .nav-indicator {
    width: 8px;
    height: 8px;
    opacity: 1;
    animation: indicatorPulse 1.5s infinite;
}

@keyframes indicatorPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}



/* Thêm các animation mới */
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center bottom;
}

/* Hiệu ứng khi active */
.nav-link.active {
    transform: translateY(-10px) scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

.nav-link.active .nav-icon-wrapper {
    animation: iconFloat 1.5s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Hiệu ứng hover */
.hover-scale:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Hiệu ứng pulse cho giftcode */
.nav-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255,228,132,0.4); }
    100% { box-shadow: 0 0 0 15px rgba(255,228,132,0); }
}

/* Hiệu ứng badge New */
.pulse {
    animation: pulseJump 1.2s infinite;
}

@keyframes pulseJump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Hiệu ứng indicator */
.nav-indicator {
    width: 6px;
    height: 6px;
    background: #ffeb3b;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link.active .nav-indicator {
    opacity: 1;
    animation: indicatorBlink 1s infinite;
}

@keyframes indicatorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Thêm các rule đặc biệt cho item có badge */
.nav-link .badge.pulse {
    z-index: 1; /* Đảm bảo badge hiển thị trên cùng */
}

/* Điều chỉnh vị trí indicator khi có badge */
.nav-link.active .nav-icon-wrapper.position-relative .nav-indicator {
    top: -12px; /* Dịch chuyển lên cao hơn */
    left: calc(50% + 12px); /* Căn chỉnh vị trí ngang */
}

/* Hiệu ứng đặc biệt cho item nạp tiền */
.nav-link[href="naptien.html"].active {
    animation: coinSpin 0.8s ease;
}

@keyframes coinSpin {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(180deg) scale(1.2); }
    100% { transform: rotateY(360deg) scale(1); }
}

/* Hiệu ứng đổi xu */
.card-header.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.icon-stack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
}

.table-hover tbody tr {
    transition: transform 0.2s ease;
}

.table-hover tbody tr:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#history-list td {
    vertical-align: middle;
}
/* Vip tài khoản */
.vip-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-radius: 5px;
}

.progress {
    flex-grow: 1;
    margin-left: 10px;
}
/* trang lỗi 404 */
.error-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qr-image {
    max-width: 220px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}
.nut-xanh {
    background-color: #007bff;
}

.step-card {
    transition: transform 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-5px);
}