* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: all 0.5s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 25%, #6d4c41 50%, #8d6e63 100%);
    min-height: 100vh;
    color: #efebe9;
    position: relative;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(210, 180, 140, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

header {
    background: rgba(62, 39, 35, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    position: relative;
    overflow: visible;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    flex: 1;
    text-align: left;
    min-width: 250px;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 250px;
    height: 160px;
    object-fit: contain;

    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-text {
    flex: 1;
}

.header-text h1 {
    margin: 0 0 5px 0;
}

.header-text p {
    margin: 0;
}

.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 100;
}

#auth-buttons {
    display: flex; /* Show by default for not logged in users */
    gap: 10px;
}

#user-menu {
    display: none; /* Hidden by default, JavaScript will show if logged in */
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-btn i {
    font-size: 16px;
}

.market-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border-color: rgba(231, 76, 60, 0.3);
    font-weight: 700;
}

.market-btn:hover {
    background: linear-gradient(135deg, #ec7063, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.login-btn {
    background: linear-gradient(135deg, #d4a574, #c49060);
    color: #3e2723;
    border-color: rgba(212, 165, 116, 0.3);
    font-weight: 700;
}

.login-btn:hover {
    background: linear-gradient(135deg, #e0b080, #d4a574);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.5);
}

.register-btn {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #3e2723;
    border-color: rgba(255, 193, 7, 0.3);
    font-weight: 700;
}

.register-btn:hover {
    background: linear-gradient(135deg, #ffd54f, #ffc107);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

/* User Menu Styles */
#user-menu {
    position: relative;
    z-index: 1000;
}

.user-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #d4a574, #c49060);
    color: #3e2723;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(212, 165, 116, 0.3);
    white-space: nowrap;
}

.user-info:hover {
    background: linear-gradient(135deg, #e0b080, #d4a574);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.5);
}

.user-info i {
    font-size: 20px;
}

.role-badge {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 5px;
    display: inline-block;
}

.role-badge.admin {
    background: linear-gradient(135deg, #ff5252, #f44336);
    color: white;
}

.role-badge.ctv {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}

.role-badge.user {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(62, 39, 35, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    overflow: hidden;
}

#user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #efebe9;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

.dropdown-item i {
    font-size: 16px;
}

.dropdown-item.logout {
    color: #ff5252;
}

.dropdown-item.logout:hover {
    background: rgba(255, 82, 82, 0.1);
}

/* Responsive cho header */
@media (max-width: 768px) {
    header {
        z-index: 200;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .header-left {
        text-align: center;
        width: 100%;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-logo {
        width: 200px;
        height: 130px;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        position: relative;
    }
    
    #auth-buttons {
        width: 100%;
        gap: 10px;
    }
    
    #auth-buttons.show {
        display: flex !important;
    }
    
    .auth-btn {
        flex: 1;
        justify-content: center;
        min-height: 45px;
    }
    
    #user-menu {
        width: 100%;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
        min-height: 45px;
    }
    
    .user-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
        min-width: 90%;
        max-width: 300px;
    }
    
    #user-menu:hover .user-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

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

/* Tắt shimmer effect trên mobile để tránh vỡ giao diện */
@media (max-width: 768px) {
    header::before {
        display: none;
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

header h1 {
    color: #ffc107;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

header p {
    color: #d7ccc8;
    font-size: 1.2rem;
    opacity: 0.9;
}

.main-content {
    background: rgba(62, 39, 35, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.4);
    position: relative;
    z-index: 1;
}

/* Auto-refresh indicator */
.refresh-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 193, 7, 0.9);
    color: #3e2723;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.refresh-indicator.show {
    opacity: 1;
    transform: translateX(0);
}

.refresh-indicator i {
    margin-right: 5px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.servers-section h2,
.items-section h2 {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 24px;
    margin-left: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Server Tabs */
.server-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(139, 69, 19, 0.4);
    background: rgba(62, 39, 35, 0.8);
    color: #d7ccc8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.tab-btn:hover {
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #3e2723;
    border-color: #ffc107;
    box-shadow: 
        0 10px 25px rgba(255, 193, 7, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Server Search Styles */
.server-search-container {
    margin-bottom: 10px;
    background: rgba(93, 64, 55, 0.6);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

/* Server Scroll Container */
.servers-scroll-container {
    max-height: 465px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    margin-bottom: 25px;
    border-radius: 15px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ffc107 rgba(93, 64, 55, 0.3);
}

.servers-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.servers-scroll-container::-webkit-scrollbar-track {
    background: rgba(93, 64, 55, 0.3);
    border-radius: 3px;
}

.servers-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    border-radius: 3px;
}

.servers-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8f00 0%, #ffc107 100%);
}

/* Server Styles - Compact */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.server-card {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
    color: white;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 193, 7, 0.2);
}


/* Search Styles */
.search-container {
    margin-bottom: 25px;
    background: rgba(93, 64, 55, 0.6);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #d7ccc8;
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(62, 39, 35, 0.8);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 12px;
    color: #efebe9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
    background: rgba(62, 39, 35, 0.9);
}

.search-box input::placeholder {
    color: #a1887f;
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #d7ccc8;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.search-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-filters select,
.bot-sort-controls select {
    padding: 10px 15px;
    background: rgba(62, 39, 35, 0.8);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    color: #efebe9;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-filters select:focus,
.bot-sort-controls select:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 10px;
}

.server-card {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.server-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    transition: left 0.6s;
}

.server-card:hover::before {
    left: 100%;
}

.server-card.active {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #3e2723;
    border-color: #ffc107;
    box-shadow: 
        0 10px 25px rgba(255, 193, 7, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.server-card.active h3,
.server-card.active p,
.server-card.active .stat-label,
.server-card.active .stat-number {
    color: #3e2723 !important;
}

.server-card h3 {
    margin: 0 0 8px 0;
    color: #efebe9 ;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    min-height: 35px;
    /* Giới hạn 2 dòng với ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    hyphens: auto;
}

.server-card p {
    margin: 4px 0;
    opacity: 0.9;
    font-size: 0.75rem;
    line-height: 1.3;
}

.server-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 1rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-top: 2px;
}

.server-info {
    background: rgba(93, 64, 55, 0.7);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 4px solid #ffc107;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.bot-type-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.type-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid rgba(139, 69, 19, 0.4);
    background: rgba(62, 39, 35, 0.8);
    color: #d7ccc8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.type-btn:hover {
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.type-btn.active {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #3e2723;
    border-color: #ffc107;
    box-shadow: 
        0 10px 25px rgba(255, 193, 7, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cột trên desktop */
    gap: 20px;
    animation: fadeInGrid 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInGrid {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card {
    background: rgba(62, 39, 35, 0.9);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.item-card:hover {
    border-color: #ffc107;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 193, 7, 0.2);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.6s;
}

.item-card:hover::before {
    left: 100%;
}

.item-header {
    display: flex;
    min-height: 65px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-icon {
    width: 45px;
    height: 45px;
    background: rgba(93, 64, 55, 0.8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffc107;
    overflow: hidden;
    border: 2px solid rgba(139, 69, 19, 0.4);
    position: relative;
    flex-shrink: 0;
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-icon .icon-fallback {
    font-size: 14px;
    font-weight: bold;
    color: #ffc107;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.item-name {
    font-weight: bold;
    color: #efebe9;
    font-size: 1.1rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    /* min-height: 40px; */
    /* Giới hạn 2 dòng với ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    hyphens: auto;
    /* min-height: 35px;  */
}

.item-amount {
    color: #d7ccc8;
    font-size: 0.85rem;
    opacity: 0.9;
}

.item-bot-count {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #3e2723;
    padding: 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    margin-top: 8px;
    justify-content: center;
}

.item-bot-count i {
    color: #3e2723;
    font-size: 0.95rem;
}

/* API Source Badges */
.api-sources {
    display: flex;
    gap: 4px;
    align-items: flex-start;
    margin-left: auto;
    flex-shrink: 0;
}

.api-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.api-badge:hover {
    transform: scale(1.15);
}

.api-badge.api-old {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.api-badge.api-new {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
}

.api-badge.api-user {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

/* Item Price Info */
.item-price {
    color: #ffc107;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 1.1rem;
}

.loading i {
    margin-right: 10px;
}

/* Modal Styles with Better Scroll */
.modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    z-index: 9999 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 0;
    margin: 0 !important;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity;
    /* Đảm bảo không bị ảnh hưởng bởi transform của parent */
    transform: none !important;
}

.modal.show {
    display: flex !important;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    /* Bỏ position fixed, để flexbox của parent xử lý */
    position: relative;
    border: 2px solid rgba(139, 69, 19, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 1001;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
    display: flex;
    flex-direction: column;
    /* Cho phép click vào modal */
    pointer-events: auto;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #3e2723;
    margin: 0;
    padding: 20px 30px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    outline: none;
    transition: all 0.3s ease;
}

.modal-content h3:focus {
    box-shadow: 
        inset 0 0 0 3px rgba(62, 39, 35, 0.3),
        0 0 20px rgba(255, 193, 7, 0.4);
}

.modal-body {
    padding: 15px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ffc107 rgba(93, 64, 55, 0.3);
    flex: 1; /* Cho phép body chiếm hết không gian còn lại */
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(93, 64, 55, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8f00 0%, #ffc107 100%);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #3e2723;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg) scale(1.1);
    color: #1a1a1a;
}

.bot-info {
    background: rgba(93, 64, 55, 0.7);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.bot-info h4 {
    color: #ffc107;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    flex-wrap: wrap;
}

/* API Badge Inline (trong modal bot details) */
.api-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.api-badge-inline.api-old {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.api-badge-inline.api-new {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
}

.api-badge-inline.api-user {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.api-badge-inline i {
    font-size: 0.7rem;
}

.info-grid {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

/* Load More Section - NGOÀI GRID */
.load-more-section {
    width: 100%;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.load-more-container {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.3) 0%, rgba(139, 69, 19, 0.2) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.load-more-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #3e2723;
    border: none;
    padding: 18px 35px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 280px;
    transform: perspective(1000px) rotateX(0deg);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #ff8f00 0%, #ffc107 100%);
    transform: perspective(1000px) rotateX(-5deg) translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.6);
}

.load-more-btn:active {
    transform: perspective(1000px) rotateX(-2deg) translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i.fa-chevron-down {
    transform: translateY(3px);
}

.load-more-btn:hover i.fa-plus-circle {
    transform: rotate(90deg);
}

.load-more-info {
    margin-top: 12px;
    font-size: 13px;
    color: #a1887f;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Breakpoints chi tiết */

/* Extra Large Desktop (1400px+) - 6 cột */
@media (min-width: 1400px) {
    .info-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }
    
    .info-item {
        min-height: 75px;
        padding: 15px;
    }
    
    .info-label {
        font-size: 11px;
    }
    
    .info-value {
        font-size: 13px;
    }
}

/* Large Desktop (1200-1399px) - 6 cột */
@media (min-width: 1200px) and (max-width: 1399px) {
    .info-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
    
    .info-item {
        min-height: 70px;
        padding: 12px;
    }
    
    .info-label {
        font-size: 10px;
    }
    
    .info-value {
        font-size: 12px;
    }
}

/* Medium Desktop/Laptop (992-1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Large Tablet (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Small Tablet/Large Phone (576-767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
        .header-logo {
        width: 200px;
        height: 130px;
        margin: 0 auto;
    }
    .header-text {
        display: none;
    }
}

/* Mobile (max-width: 575px) */
@media (max-width: 575px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
        .header-logo {
        width: 200px;
        height: 130px;
        margin: 0 auto;
    }
    .header-text {
        display: none;
    }
}

/* Laptop/PC nhỏ: 3 cột */
@media (min-width: 992px) and (max-width: 1199px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .info-item {
        min-height: 65px;
    }
    
    .info-label {
        font-size: 11px;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .info-value {
        font-size: 12px;
        line-height: 1.3;
    }
}

/* Tablet: 2 cột */
@media (min-width: 768px) and (max-width: 991px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .info-item {
        min-height: 60px;
    }
    
    .info-label {
        font-size: 12px;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .info-value {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* Mobile: 2 cột */
@media (max-width: 767px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .info-item {
        min-height: 55px;
        padding: 10px;
    }
    
    .info-label {
        font-size: 10px;
        margin-bottom: 4px;
        line-height: 1.1;
    }
    
    .info-value {
        font-size: 11px;
        line-height: 1.2;
    }
}

/* Info Item Base Styles */
.info-item {
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.4) 0%, rgba(139, 69, 19, 0.3) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info-item:hover {
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info-label {
    color: #d7ccc8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

.info-value {
    color: #efebe9;
    font-weight: bold;
    text-align: center;
    word-wrap: break-word;
}

/* Price và Amount Highlights - Tăng contrast */
.price-highlight {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.price-highlight .info-label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.price-highlight .info-value {
    color: white !important;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.amount-highlight {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.amount-highlight .info-label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.amount-highlight .info-value {
    color: white !important;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Player Count Style */
.player-count {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.player-count .info-label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.player-count .info-label i {
    margin-right: 5px;
}

.player-count .info-value {
    color: white !important;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Contact Info Style */
.contact-info {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.contact-info .info-label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-info .info-label i {
    margin-right: 5px;
}

.contact-info .info-value {
    color: white !important;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    word-break: break-word;
}

/* Contact Info - No data state */
.contact-info .info-value:contains("Chưa có thông tin") {
    opacity: 0.7;
    font-style: italic;
    font-weight: 600;
}

/* Bot Info Cards - Cải thiện spacing */
.bot-info {
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.6) 0%, rgba(139, 69, 19, 0.4) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.bot-info:hover {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.bot-info h4 {
    margin: 0 0 15px 0;
    color: #ffc107;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.bot-info h4 i {
    color: #ff8f00;
    flex-shrink: 0;
}

/* Mobile optimization cho bot cards */
@media (max-width: 767px) {
    .main-content {
        padding: 15px;
    }
    .bot-info {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .bot-info h4 {
        font-size: 14px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    
    .server-source {
        font-size: 10px;
        margin-left: 4px;
    }
    .server-tabs,
    .bot-type-selection {
        flex-direction: column;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
        .header-logo {
        width: 200px;
        height: 130px;
        margin: 0 auto;
    }
    .header-text {
        display: none;
    }
    .main-content {
        padding: 10px;
    }
    .info-grid {
        gap: 8px;
    }
    
    .info-item {
        min-height: 50px;
        padding: 8px;
    }
    
    .info-label {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .info-value {
        font-size: 10px;
    }
    
    .bot-info {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .bot-info h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }
        .server-tabs,
        .bot-type-selection{
        flex-direction: column;
    }
}

/* Load More Section - NGOÀI GRID */
.load-more-section {
    width: 100%;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.load-more-container {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.3) 0%, rgba(139, 69, 19, 0.2) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.load-more-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #3e2723;
    border: none;
    padding: 18px 35px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 280px;
    transform: perspective(1000px) rotateX(0deg);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #ff8f00 0%, #ffc107 100%);
    transform: perspective(1000px) rotateX(-5deg) translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.6);
}

.load-more-btn:active {
    transform: perspective(1000px) rotateX(-2deg) translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i.fa-chevron-down {
    transform: translateY(3px);
}

.load-more-btn:hover i.fa-plus-circle {
    transform: rotate(90deg);
}

.load-more-info {
    margin-top: 12px;
    font-size: 13px;
    color: #a1887f;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive cho load-more */
@media (max-width: 768px) {
    .load-more-container {
        max-width: 350px;
        padding: 20px;
        margin: 0 15px;
    }
    
    .load-more-btn {
        padding: 15px 25px;
        font-size: 14px;
        min-width: 250px;
    }
    
    .load-more-info {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .load-more-container {
        max-width: 300px;
        padding: 15px;
        margin: 0 10px;
    }
    
    .load-more-btn {
        padding: 12px 20px;
        font-size: 13px;
        min-width: 220px;
        gap: 8px;
    }
    
    .load-more-btn i {
        font-size: 14px;
    }
}
.item-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 143, 0, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
}

.item-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.8) 0%, rgba(139, 69, 19, 0.8) 100%);
    border: 2px solid rgba(255, 193, 7, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.item-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.item-icon-large .icon-fallback {
    font-size: 16px;
    font-weight: bold;
    color: #ffc107;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.9) 0%, rgba(139, 69, 19, 0.9) 100%);
    border-radius: 10px;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-details h4 {
    margin: 0 0 8px 0;
    color: #ffc107;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.item-details h4 i {
    color: #ff8f00;
    flex-shrink: 0;
}

.item-details p {
    margin: 0;
    color: #d7ccc8;
    font-size: 14px;
    font-weight: 500;
}

/* Server Grid - Responsive */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cột trên desktop */
    gap: 15px;
    margin-bottom: 30px;
    padding: 10px;
}


/* Items Grid - Responsive */
.items-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cột trên desktop */
    gap: 20px;
}

/* MOBILE RESPONSIVE - 767px and below */
@media only screen and (max-width: 767px) {
    /* Server Grid - 2 cột trên mobile */
    .servers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 8px;
    }
    
    .server-card {
        padding: 15px;
    }
    
    .server-card h3 {
        font-size: 0.8rem;
        min-height: 32px;
        gap: 4px;
    }
    
    .server-card p {
        font-size: 0.7rem;
        margin: 3px 0;
    }
    
    .stat-number {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    /* Items Grid - 2 cột trên mobile */
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .item-card {
        padding: 15px;
    }
    
    .item-name {
        font-size: 1rem;
        /* min-height: 35px; */
    }
    
    .item-amount {
        font-size: 0.8rem;
    }
    
    .item-icon {
        width: 40px;
        height: 40px;
    }
    
    .item-header {
        gap: 5px;
        margin-bottom: 10px;
    }
}

/* EXTRA SMALL MOBILE - 480px and below */
@media only screen and (max-width: 480px) {
    .servers-grid {
        gap: 10px;
        padding: 5px;
    }
    
    .server-card {
        padding: 12px;
    }
    
    .server-card h3 {
        font-size: 0.75rem;
        min-height: 30px;
        gap: 3px;
    }
    
    .server-card p {
        font-size: 0.65rem;
        margin: 2px 0;
    }
    
    .server-stats {
        margin-top: 6px;
        padding-top: 6px;
    }
    
    .stat-number {
        font-size: 0.8rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    /* Items Grid - Vẫn 2 cột nhưng nhỏ hơn */
    .items-grid {
        gap: 12px;
    }
    
    .item-card {
        padding: 12px;
    }
    
    .item-name {
        font-size: 0.95rem;
        /* min-height: 35px; */
    }
    
    .item-icon {
        width: 35px;
        height: 35px;
    }
    
    .item-header {
        gap: 0px;
        min-height: 57px;
    }
    
    .item-amount {
        font-size: 0.75rem;
    }
}

/* TABLET - 768px to 991px */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .servers-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 cột trên tablet */
        gap: 14px;
    }
    
    .items-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 cột trên tablet */
        gap: 18px;
    }
    .item-header {
        min-height: 57px;
    }
}

/* Clan Shop Styles */
.clan-card {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
    border-color: rgba(139, 69, 19, 0.4);
}

.clan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.5);
}

.clan-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ce93d8;
    margin-right: 4px;
    flex-shrink: 0;
}

.clan-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clan-info .info-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.clan-info .info-row i {
    margin-right: 8px;
    color: #ce93d8;
    width: 16px;
}

.clan-details {
    padding: 15px;
}

.clan-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
}

.clan-header h4 {
    color: #ffc107;
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clan-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.clan-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
}

.clan-stats .stat-item i {
    color: #ffc107;
}

.clan-location {
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.clan-location .info-row {
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.clan-location .info-row i {
    color: #ffc107;
    width: 18px;
}

.clan-items {
    margin-top: 15px;
}

.clan-items h5 {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.items-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.modal-item-card {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
    border: 1px solid rgba(139, 69, 19, 0.4);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-item-card:hover {
    background: linear-gradient(135deg, #4e342e 0%, #6d4c41 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 69, 19, 0.6);
}

.modal-item-card .item-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.modal-item-card .item-info {
    flex: 1;
}

.modal-item-card .item-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    /* margin-bottom: 5px; */
}

.modal-item-card .item-price {
    color: #ffc107;
    font-weight: 700;
    font-size: 1rem;
}

/* Flip Card Bot Styles */
.flipcard-card {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
    border-color: rgba(139, 69, 19, 0.4);
}

.flipcard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.5);
}

.flipcard-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffc107;
    margin-right: 4px;
    flex-shrink: 0;
}

.flipcard-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.flipcard-info .info-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.flipcard-info .info-row i {
    margin-right: 8px;
    color: #ffc107;
    width: 16px;
}

.flipcard-info .ticket-count {
    color: #4caf50;
    font-weight: 600;
}

.flipcard-info .price-info {
    color: #ffc107;
    font-weight: 600;
}

.flipcard-details {
    padding: 15px;
}

.flipcard-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
}

.flipcard-header h4 {
    color: #ffc107;
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flipcard-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.flipcard-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
}

.flipcard-stats .stat-item i {
    color: #ffc107;
}

.flipcard-location {
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.flipcard-location .info-row {
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.flipcard-location .info-row i {
    color: #ffc107;
    width: 18px;
}

.flipcard-offers {
    margin-top: 15px;
}

.flipcard-offers h5 {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.offer-card {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.offer-card:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    border-color: rgba(76, 175, 80, 0.6);
}

.offer-card .offer-quantity {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.offer-card .offer-price {
    color: #ffc107;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.offer-card .offer-total {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* SMALL DESKTOP - 992px to 1199px */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .servers-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .items-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Luong Bot Styles */
.luong-card {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
    border-color: rgba(139, 69, 19, 0.4);
}

.luong-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.5);
}

.luong-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #e91e63;
    margin-right: 4px;
    flex-shrink: 0;
}

.luong-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.luong-info .info-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.luong-info .info-row i {
    margin-right: 8px;
    color: #ffc107;
    width: 16px;
}

.luong-info .luong-count {
    color: #e91e63;
    font-weight: 600;
}

.luong-info .luong-count i {
    color: #e91e63;
}

.luong-info .price-info {
    color: #ffc107;
    font-weight: 600;
}

.luong-details {
    padding: 15px;
}

.luong-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
}

.luong-header h4 {
    color: #ffc107;
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.luong-header h4 i {
    color: #e91e63;
}

.luong-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.luong-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
}

.luong-stats .stat-item i {
    color: #ffc107;
}

.luong-stats .stat-item:first-child i {
    color: #e91e63;
}

.luong-location {
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.luong-location .info-row {
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.luong-location .info-row i {
    color: #ffc107;
    width: 18px;
}

.luong-offers {
    margin-top: 15px;
}

.luong-offers h5 {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-card.luong-offer {
    background: linear-gradient(135deg, #880e4f 0%, #c2185b 100%);
    border: 1px solid rgba(233, 30, 99, 0.4);
}

.offer-card.luong-offer:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
    border-color: rgba(233, 30, 99, 0.6);
}

/* Bot Xu Price Card Styles */
.offer-card.xu-price-card {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.offer-card.xu-price-card:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    border-color: rgba(33, 150, 243, 0.6);
}

.offer-card.xu-price-card .offer-price {
    color: #ffc107;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

/* Bot Xu Styles */
.xu-card {
    background: rgba(62, 39, 35, 0.9);
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.xu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

/* Bot Item QC Card Styling */
.qc-card {
    background: rgba(62, 39, 35, 0.9);
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.qc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

/* Bot Mua Item QC - Same color as Bot Ban */
.type-btn[data-type="8"].active ~ .items-grid .qc-card,
body[data-bot-type="8"] .qc-card {
    background: rgba(62, 39, 35, 0.9);
    border: 2px solid rgba(139, 69, 19, 0.3);
}

body[data-bot-type="8"] .qc-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

body[data-bot-type="8"] .qc-header {
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
}

.qc-card .bot-name-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.qc-card .item-id {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.qc-card .bot-count-highlight {
    background: rgba(76, 175, 80, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #4caf50;
}

.qc-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.qc-details {
    color: #e0e0e0;
}

.qc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(156, 39, 176, 0.3);
}

.qc-title h4 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1.3rem;
}

.bot-name-detail {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.qc-location {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.qc-prices {
    margin-top: 20px;
}

.qc-prices h5 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Source Server Badges */
.server-source-badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
    color: #ffc107;
    font-weight: 500;
}

.server-source-badge-large {
    display: inline-block;
    background: rgba(255, 193, 7, 0.25);
    border: 1px solid rgba(255, 193, 7, 0.5);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-left: 12px;
    color: #ffc107;
    font-weight: 600;
    vertical-align: middle;
}

.xu-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffc107;
    margin-right: 4px;
    flex-shrink: 0;
}

.xu-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xu-info .info-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.xu-info .info-row i {
    margin-right: 8px;
    color: #ffc107;
    width: 16px;
}

.xu-info .bank-info {
    color: #4fc3f7;
    font-weight: 600;
}

.xu-info .bank-info i {
    color: #4fc3f7;
}

.xu-info .price-info {
    color: #ffc107;
    font-weight: 600;
}

.xu-info .account-info {
    color: #81c784;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.xu-details {
    padding: 15px;
}

.xu-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(63, 81, 181, 0.3);
}

.xu-header h4 {
    color: #ffc107;
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.xu-header h4 i {
    color: #ffc107;
}

.xu-bank-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(63, 81, 181, 0.3);
}

.bank-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 10px;
}

.bank-details {
    flex: 1;
}

.bank-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 4px;
}

.bank-full-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.xu-location {
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.xu-location .info-row {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.xu-location .info-row i {
    color: #ffc107;
    width: 18px;
}

.xu-location .account-number {
    color: #81c784;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
}

.xu-location .account-holder {
    color: #4fc3f7;
    font-weight: 600;
    text-transform: uppercase;
}

.xu-location .description {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    padding: 10px;
    background: rgba(255, 193, 7, 0.05);
    border-left: 3px solid #ffc107;
    margin-top: 5px;
}

.xu-prices {
    margin-top: 15px;
}

.xu-prices h5 {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.price-card {
    padding: 12px;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.2) 0%, rgba(26, 35, 126, 0.3) 100%);
    border: 1px solid rgba(63, 81, 181, 0.3);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.3) 0%, rgba(26, 35, 126, 0.4) 100%);
    border-color: rgba(63, 81, 181, 0.5);
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 6px;
}

.price-amount i {
    margin-right: 5px;
}

.price-value {
    font-size: 0.95rem;
    color: #81c784;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-desc {
    font-size: 0.85rem;
    color: #81c784;
    font-weight: 600;
    margin-top: 4px;
    padding: 6px 10px;
    background: rgba(129, 199, 132, 0.1);
    border-radius: 6px;
    border-left: 3px solid #81c784;
    display: inline-block;
}

.xu-qr {
    margin-top: 15px;
}

.xu-qr h5 {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-container {
    display: flex;
    justify-content: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.qr-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* QR Code Generator Styles */
.xu-qr-generator {
    margin-top: 20px;
    padding: 0;
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.qr-generator-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    padding: 15px;
    background: rgba(255, 193, 7, 0.08);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.qr-generator-header h5 {
    color: #ffc107;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.btn-toggle-qr {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-toggle-qr:hover {
    background: rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.qr-generator-form {
    animation: slideDown 0.3s ease;
    padding: 20px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 cột trên PC */
    gap: 15px;
    margin-bottom: 20px;
}

.qr-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; /* Quan trọng: cho phép flex item co lại */
}

.qr-input-group label {
    color: #ffc107;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.qr-input {
    width: 100%; /* Đảm bảo full width trong container */
    padding: 10px 15px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Quan trọng: tính padding vào width */
}

.qr-input:focus {
    outline: none;
    border-color: #ffc107;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.qr-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 4px;
    line-height: 1.3;
}

.btn-generate-qr {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-generate-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, #ffca28, #ffa726);
}

.btn-generate-qr:active {
    transform: translateY(0);
}

.qr-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.qr-loading {
    text-align: center;
    padding: 30px;
    color: #ffc107;
    font-size: 1.1rem;
}

.qr-loading i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.qr-display {
    text-align: center;
}

.qr-image-generated {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    background: white;
    padding: 10px;
    margin-bottom: 15px;
}

.qr-info {
    background: rgba(255, 193, 7, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.qr-info p {
    margin: 8px 0;
    color: #fff;
    font-size: 0.95rem;
}

.qr-info strong {
    color: #ffc107;
}

.btn-download-qr {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-download-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #66bb6a, #81c784);
}

/* Mobile Responsive - Stack inputs vertically */
@media only screen and (max-width: 768px) {
    .qr-input-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-image-generated {
        max-width: 280px;
    }
}

/* LARGE DESKTOP - 1200px and above */
@media only screen and (min-width: 1200px) {
    .servers-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .items-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Global Search Styles */
.global-search-header {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid rgba(0, 123, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.global-search-header h3 {
    color: #007bff;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.global-search-header h3 i {
    margin-right: 10px;
}

.global-search-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
}

.search-result-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.4s ease;
}

.search-result-section .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 15px 10px;
}

.result-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 15px;
}

.result-section-header h4 {
    margin: 0;
    color: #ffc107;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-count {
    background: rgba(255, 193, 7, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: normal;
}

.switch-tab-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.switch-tab-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.search-result-card {
    opacity: 0;
    animation: fadeInScale 0.3s ease forwards;
}

.search-result-card:nth-child(1) { animation-delay: 0.05s; }
.search-result-card:nth-child(2) { animation-delay: 0.1s; }
.search-result-card:nth-child(3) { animation-delay: 0.15s; }
.search-result-card:nth-child(4) { animation-delay: 0.2s; }
.search-result-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive for global search */
@media (max-width: 768px) {
    .result-section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .result-section-header h4 {
        flex-direction: column;
    }
    
    .search-result-section .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}
/* Type Badge for Global Search */
.type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.type-badge.type-1 { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.type-badge.type-2 { background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%); }
.type-badge.type-3 { background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%); }
.type-badge.type-4 { background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%); }
.type-badge.type-5 { background: linear-gradient(135deg, #6610f2 0%, #6f42c1 100%); }
.type-badge.type-6 { background: linear-gradient(135deg, #007bff 0%, #17a2b8 100%); }
.type-badge.type-7 { background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%); }
.type-badge.type-8 { background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%); }

.search-result-card {
    position: relative;
}
/* Type Badge for Global Search */
.type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.type-badge.type-1 { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.type-badge.type-2 { background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%); }
.type-badge.type-3 { background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%); }
.type-badge.type-4 { background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%); }
.type-badge.type-5 { background: linear-gradient(135deg, #6610f2 0%, #6f42c1 100%); }
.type-badge.type-6 { background: linear-gradient(135deg, #007bff 0%, #17a2b8 100%); }
.type-badge.type-7 { background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%); }
.type-badge.type-8 { background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%); }

.search-result-card {
    position: relative;
}


.luong-header{
    min-height: 2px !important;
    padding-bottom: 2px !important;
}
.flipcard-header{
    min-height: 2px !important;
    padding-bottom: 2px !important;
}
.xu-header{
    min-height: 2px !important;
    padding-bottom: 2px !important;
}