.lazy-img {
            filter: blur(6px);
            transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: filter;
        }
        .lazy-img.loaded {
            filter: blur(0);
        }
        .prompt-regular {
            font-family: "Prompt", sans-serif;
            font-weight: 400;
            font-style: normal;
        }

        body {
            background-color: #121212;
            color: #e5e5e5;
            font-family: "Prompt", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        }

        .tab-active {
            border-bottom: 2px solid #cddc39;
            color: #cddc39;
            background-color: rgba(205, 220, 57, 0.1);
        }

        .item-equipped {
            border: 2px solid #cddc39 !important;
            box-shadow: 0 0 10px rgba(205, 220, 57, 0.3);
        }

        .item-equipped.flash-item {
            animation: item-flash 1.4s ease;
        }

        @keyframes item-flash {
            0% {
                box-shadow: 0 0 10px rgba(205, 220, 57, 0.3);
            }
            40% {
                box-shadow: 0 0 0 2px rgba(205, 220, 57, 0.45), 0 0 20px rgba(205, 220, 57, 0.25);
                transform: translateY(-1px);
            }
            100% {
                box-shadow: 0 0 10px rgba(205, 220, 57, 0.3);
            }
        }

        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #1a1a1a;
        }

        ::-webkit-scrollbar-thumb {
            background: #444;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #666;
        }

        #selection-modal,
        #summary-modal,
        #mobile-filter-modal,
        #review-modal {
            position: fixed;
            inset: 0;
            z-index: 50;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.78);
            backdrop-filter: blur(12px);
            padding: 1rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.22s ease;
        }

        #selection-modal.show,
        #summary-modal.show,
        #mobile-filter-modal.show,
        #review-modal.show,
        #selection-modal.closing,
        #summary-modal.closing,
        #mobile-filter-modal.closing,
        #review-modal.closing {
            display: flex;
            pointer-events: auto;
        }

        #selection-modal.show,
        #summary-modal.show,
        #mobile-filter-modal.show,
        #review-modal.show {
            opacity: 1;
        }

        #selection-modal.closing,
        #summary-modal.closing,
        #mobile-filter-modal.closing,
        #review-modal.closing {
            opacity: 0;
        }

        #selection-modal .modal-panel,
        #summary-modal .modal-panel,
        #mobile-filter-modal .modal-panel,
        #review-modal .modal-panel {
            width: min(100%, 920px);
            max-width: 920px;
            max-height: min(100%, 84vh);
            box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.08);
            opacity: 0;
            transform: translateY(8px) scale(0.98);
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        #selection-modal.show .modal-panel,
        #summary-modal.show .modal-panel,
        #mobile-filter-modal.show .modal-panel,
        #review-modal.show .modal-panel {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        #selection-modal.closing .modal-panel,
        #summary-modal.closing .modal-panel,
        #mobile-filter-modal.closing .modal-panel,
        #review-modal.closing .modal-panel {
            opacity: 0;
            transform: translateY(8px) scale(0.98);
        }

        #summary-modal .modal-panel {
            width: min(100%, 1120px);
            max-width: 1120px;
            max-height: min(100%, 88vh);
        }

        #footer-info-modal {
            position: fixed;
            inset: 0;
            z-index: 50;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.78);
            backdrop-filter: blur(12px);
            padding: 1rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.22s ease;
        }

        #footer-info-modal.show,
        #footer-info-modal.closing {
            display: flex;
        }

        #footer-info-modal.show {
            opacity: 1;
            pointer-events: auto;
        }

        #footer-info-modal.closing {
            opacity: 0;
            pointer-events: none;
        }

        #footer-info-modal .modal-panel {
            width: min(100%, 720px);
            box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.96));
            backdrop-filter: blur(18px);
            overflow: hidden;
            opacity: 0;
            transform: translateY(8px) scale(0.98);
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        #footer-info-modal.show .modal-panel {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        #footer-info-modal.closing .modal-panel {
            opacity: 0;
            transform: translateY(8px) scale(0.98);
        }

        #item-detail-modal {
            position: fixed;
            inset: 0;
            z-index: 60;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.78);
            backdrop-filter: blur(12px);
            padding: 1rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.22s ease;
        }

        #item-detail-modal.show,
        #item-detail-modal.closing {
            display: flex;
        }

        #item-detail-modal.show {
            opacity: 1;
            pointer-events: auto;
        }

        #item-detail-modal.closing {
            opacity: 0;
            pointer-events: none;
        }

        #item-detail-modal .modal-panel {
            width: min(100%, 560px);
            box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.96));
            backdrop-filter: blur(18px);
            overflow: hidden;
            opacity: 0;
            transform: translateY(8px) scale(0.98);
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        #item-detail-modal.show .modal-panel {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        #item-detail-modal.closing .modal-panel,
        #download-preview-modal.closing .modal-panel {
            opacity: 0;
            transform: translateY(8px) scale(0.98);
        }

        #download-preview-modal {
            position: fixed;
            inset: 0;
            z-index: 60;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.78);
            backdrop-filter: blur(12px);
            padding: 1rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.22s ease;
        }

        #download-preview-modal.show,
        #download-preview-modal.closing {
            display: flex;
        }

        #download-preview-modal.show {
            opacity: 1;
            pointer-events: auto;
        }

        #download-preview-modal.closing {
            opacity: 0;
            pointer-events: none;
        }

        #download-preview-modal .modal-panel {
            width: min(100%, 720px);
            box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.96));
            backdrop-filter: blur(18px);
            overflow: hidden;
            opacity: 0;
            transform: translateY(8px) scale(0.98);
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        #download-preview-modal.show .modal-panel {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        /* Review Stars */
        .review-star {
            cursor: pointer;
            outline: none;
        }
        .review-star:hover,
        .review-star.hover,
        .review-star.selected {
            color: #facc15 !important;
            transform: scale(1.1);
        }

        #selection-modal .selection-card {
            border: 1px solid #374151;
            background: rgba(20, 20, 20, 0.95);
            min-height: auto;
        }

        #selection-modal .selection-card .preview-box {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
            border-radius: 0.75rem;
            overflow: hidden;
            margin: 0 auto;
        }

        #selection-modal .selection-card .preview-box img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        #selection-modal .selection-card .preview-box img.object-cover {
            object-fit: cover;
        }

        #selection-modal .selection-card.selected {
            border-color: #cddc39;
            box-shadow: 0 0 0 2px rgba(205, 220, 57, 0.2);
        }

        .preview-flash {
            border-color: #cddc39 !important;
            box-shadow: 0 0 0 2px rgba(205, 220, 57, 0.18);
            animation: previewPulse 0.7s ease;
        }

        #item-context-menu {
            display: none;
            min-width: 190px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(17, 24, 39, 0.97);
            backdrop-filter: blur(10px);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
            z-index: 9999;
        }

        #item-context-menu.show {
            display: block;
        }

        .context-menu-item {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            border-radius: 0.65rem;
            padding: 0.7rem 0.8rem;
            text-align: left;
            color: #f3f4f6;
            transition: background-color 0.16s ease, color 0.16s ease;
        }

        .context-menu-item:hover {
            background: rgba(205, 220, 57, 0.12);
            color: #fef3c7;
        }

        .stat-value {
            display: inline-block;
            min-width: 3.25rem;
            text-align: right;
        }

        .stat-value .stat-animated-number {
            display: inline-block;
            will-change: transform;
            animation: statValuePulse 0.45s ease;
        }

        @keyframes statValuePulse {
            0% {
                transform: scale(0.92);
            }
            50% {
                transform: scale(1.08);
            }
            100% {
                transform: scale(1);
            }
        }

        @keyframes previewPulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(205, 220, 57, 0.22);
            }
            50% {
                transform: scale(1.03);
                box-shadow: 0 0 0 6px rgba(205, 220, 57, 0.08);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(205, 220, 57, 0);
            }
        }

        .floating-btn-container {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 9000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: bounceFloat 2s infinite ease-in-out;
            cursor: pointer;
        }

        .floating-btn-container img {
            height: 100px;
            width: auto;
            filter: drop-shadow(0 0 8px rgba(205, 220, 57, 0.8)) drop-shadow(0 0 15px rgba(205, 220, 57, 0.5));
            transition: transform 0.3s ease, filter 0.3s ease;
            object-fit: contain;
        }

        .floating-btn-container img:hover {
            transform: scale(1.1);
            filter: drop-shadow(0 0 12px rgba(205, 220, 57, 1)) drop-shadow(0 0 25px rgba(205, 220, 57, 0.8));
        }

        @keyframes bounceFloat {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-15px);
            }
        }

        @media (max-width: 768px) {
            .floating-btn-container {
                right: 15px;
                bottom: 15px;
            }
            .floating-btn-container img {
                height: 75px;
            }
        }