/* Loading styles */
.loading-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 5px;
    height: 5px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Top nạp thẻ item styles */
.top-item {
    display: flex;
    align-items: center;
    padding: 2px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.top-item:hover {
    background-color: rgba(156, 39, 176, 0.05);
}

.top-item:last-child {
    border-bottom: none;
}

.rank-badge {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 10px;
}

.rank-badge.top-1 {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}
.rank-badge.top-2 {
    background: linear-gradient(135deg, #c0c0c0, #a9a9a9);
}
.rank-badge.top-3 {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--primary-color);
}

.user-info {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.username {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.amount {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 30px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.scale-img {
    position: relative;
    overflow: hidden;
}

.scale-img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.items-content-flashsale {
    
    border-radius: 12px;
    padding: 15px;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.items-content-flashsale:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.items-content-flashsale h3 {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 5px;
    line-height: 1.3;
}

.items-content-flashsale h4 {
    color: #666;
    font-size: 12px;
    margin: 5px 0;
}

.items-content-flashsale .p06 {
    font-size: 11px;
    color: #777;
    margin: 3px 0;
}

.items-content-flashsale .p06 span {
    color: var(--primary-color);
    font-weight: 600;
}

.ppr {
    font-size: 12px;
    margin: 8px 0 5px;
}

.ppo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0 10px;
}

.ppo span:first-child {
    color: #ff4757;
    font-weight: bold;
    font-size: 14px;
}

.ppo span:last-child {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
}

.button-buy-flashsale {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    text-align: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-buy-flashsale:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.no-flashsale,
.no-flashsale-items {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Timer styles */
.timer {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    list-style: none;
    padding: 0;
}

.timer li {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.timer li span:first-child {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.timer li span:last-child {
    display: block;
    font-size: 10px;
    opacity: 0.9;
}

/* Marquee animation */
.rotation-marquee {
    background: linear-gradient(
        135deg,
        rgba(156, 39, 176, 0.1),
        rgba(33, 150, 243, 0.1)
    );
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rotation-marquee h5 {
    color: var(--primary-color);
    font-weight: bold;
    margin: 0;
}

.category-item {
    border: 2px solid var(--primary-color) !important;
    background: linear-gradient(
        135deg,
        rgba(156, 39, 176, 0.1),
        rgba(33, 150, 243, 0.1)
    ) !important;
}

.category-item:hover {
    border-color: var(--secondary-color) !important;
    background: linear-gradient(
        135deg,
        rgba(156, 39, 176, 0.2),
        rgba(33, 150, 243, 0.2)
    ) !important;
    transform: translateY(-2px);
}

.category-item .buy-category-btn {
    color: white;
    border: solid 1px
        linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 3px 5px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(156, 39, 176, 0.3);
}

.category-item .buy-category-btn:hover {
    background: linear-gradient(
        45deg,
        var(--secondary-color),
        var(--primary-color)
    );
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.5);
}

.category-description {
    color: #666;
    font-size: 12px;
    margin: 5px 0;
    font-style: italic;
}

.minigame-item {
    border: 2px solid #ffc107 !important;
    background: linear-gradient(
        135deg,
        rgba(255, 193, 7, 0.1),
        rgba(255, 152, 0, 0.1)
    ) !important;
}

.minigame-item:hover {
    border-color: #ff9800 !important;
    background: linear-gradient(
        135deg,
        rgba(255, 193, 7, 0.2),
        rgba(255, 152, 0, 0.2)
    ) !important;
    transform: translateY(-2px);
}

.minigame-item button {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

.minigame-item button:hover {
    background: linear-gradient(45deg, #ff9800, #ffc107);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.5);
    transform: scale(1.05);
}

.no-mixed-content {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    width: 100%;
}

/* Enhanced item transitions */
.items-content-index {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.items-content-index::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(156, 39, 176, 0.1),
        transparent
    );
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.items-content-index:hover::before {
    opacity: 1;
}

/* Category badge for account count */
.category-item .p06 {
    background: rgba(156, 39, 176, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 5px 0;
}

/* Minigame plays counter styling */
.minigame-item .p06 {
    background: rgba(255, 193, 7, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    color: #ff9800;
    margin: 5px 0;
}

/* Price styling for minigames */
.minigame-item .ppr {
    color: #ff5722;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .section-container-index {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .items-content-index h3 {
        font-size: 14px;
    }

    .category-item .buy-category-btn,
    .minigame-item button {
        padding: 6px 12px;
        font-size: 12px;
    }
}
.no-accounts{
    text-align: center;
    padding: 50px 20px;
    color: #666;
    font-style: italic;
}