.items-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.items-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    z-index: -1;
}

.items-header {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.items-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.item-stat-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-stat-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.item-stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    position: relative;
    display: inline-block;
}

.item-stat-card:nth-child(2) .item-stat-value {
    color: var(--success);
}

.item-stat-card:nth-child(3) .item-stat-value {
    color: var(--danger);
}

.item-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.8;
}

.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.search-box {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid transparent;
    border-radius: 16px;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1),
        var(--glow-primary);
}

.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 14px 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.filter-select:hover {
    border-color: var(--primary-light);
    background: rgba(15, 23, 42, 0.8);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
    margin-bottom: 50px;
}

.item-card {
    background: linear-gradient(145deg,
            rgba(30, 41, 59, 0.7),
            rgba(15, 23, 42, 0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.item-card:hover {
    transform: scale(1.01);
    border-color: rgba(139, 92, 246, 0.3);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.item-card:hover .item-image {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.item-shortname {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.item-stats {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
    padding: 5px 5px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-label-i {
    color: var(--text-muted);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.8;
}

.stat-value-i {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
}

.stat-ratio {
    grid-column: span 3;
    margin-top: 15px;
}

.ratio-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ratio-progress {
    height: 100%;
    background: linear-gradient(90deg,
            var(--success),
            var(--accent-teal));
    border-radius: 4px;
    width: 0;
    position: relative;
    overflow: hidden;
}

.ratio-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.extracted-ratio {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.died-ratio {
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin: 20px 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    overflow: hidden;
    bottom: 0;
    z-index: 3;
    place-self: center;
}

.page-btn {
    padding: 14px 28px;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.page-numbers {
    display: flex;
    gap: 12px;
}

.page-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.page-number:hover {
    color: var(--text-white);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.page-number:hover::before {
    opacity: 0.1;
}

.page-number.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .filters {
        width: 100%;
    }

    .filter-select {
        flex: 1;
        min-width: unset;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

.no-items,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px dashed var(--border);
}

.no-items h3,
.error-message h3 {
    color: var(--text-white);
    margin-bottom: 10px;
}

.no-items p,
.error-message p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.error-message button {
    padding: 10px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.error-message button:hover {
    background: var(--primary-dark);
}

.extracted-stat {
    color: var(--success);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.died-stat {
    color: var(--danger);
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.last-updated {
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 25px 6px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    transition: all 0.3s ease;
}

.update-indicator {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.update-indicator::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    opacity: 0;
    filter: drop-shadow(0 0 4px var(--success));
}

.recent-update {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.recent-update .update-indicator::after {
    opacity: 1;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }

    .item-header {
        flex-direction: column;
        text-align: center;
    }

    .item-image {
        width: 90px;
        height: 90px;
    }
}