     /* --- Tooltip Styles (מהקובץ הישן) --- */
        #item-tooltip {
            position: fixed;
            z-index: 9999;
            width: 320px;
            background-color: #f0eee6; 
            border-radius: 8px;
            box-shadow: 0 15px 50px rgba(0,0,0,0.8);
            display: none;
            pointer-events: none; 
            overflow: hidden;
            font-family: 'Heebo', sans-serif;
            color: #1a1a1a;
            direction: ltr; 
            text-align: left;
        }

        .tooltip-header-bg {
            height: 90px;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            border-bottom-right-radius: 40% 15px;
            border-bottom-left-radius: 40% 15px;
        }

        .tooltip-content {
            position: relative;
            padding: 20px;
            padding-top: 50px; 
        }

        .tooltip-img-container {
            text-align: center;
            position: relative;
            margin-bottom: 15px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .tooltip-img {
            max-width: 100px;
            max-height: 80px;
            filter: drop-shadow(0 8px 6px rgba(0,0,0,0.4));
        }

        .tooltip-tags {
            display: flex;
            gap: 5px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }

        .tooltip-tag {
            font-size: 0.7rem;
            padding: 3px 6px;
            color: white;
            font-weight: 700;
            text-transform: uppercase;
            border-radius: 2px;
            background-color: #777;
        }

        .tooltip-title {
            font-family: 'Rajdhani', sans-serif;
            font-weight: 800;
            font-size: 1.5rem;
            text-transform: uppercase;
            margin-bottom: 5px;
            line-height: 1;
            letter-spacing: 0.5px;
        }

        .tooltip-desc {
            font-size: 0.9rem;
            color: #777;
            margin-bottom: 15px;
            line-height: 1.3;
            font-weight: 400;
        }

        .tooltip-details-list {
            border-top: 2px solid #ddd;
            padding-top: 10px;
            margin-bottom: 15px;
            font-size: 0.9rem;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 3px 0;
            border-bottom: 1px solid #eee;
        }
        .detail-row:last-child { border-bottom: none; }
        .detail-label { font-weight: 500; color: #444; }
        .detail-val { font-weight: bold; font-family: 'Rajdhani'; }

        .tooltip-stats {
            display: flex;
            border-top: 2px solid #ccc;
            background: #e6e4dc;
            margin: 0 -20px -20px -20px; 
            padding: 12px 20px;
        }

        .tooltip-stat-box {
            flex: 1;
            text-align: center;
            font-weight: 800;
            font-family: 'Rajdhani';
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: #111;
        }
        
        .tooltip-stat-box:first-child {
            border-right: 2px solid #ccc;
        }

        /* Colors */
        .bg-common { background-color: #586963; }
        .bg-uncommon { background-color: #579c66; }
        .bg-rare { background-color: #4a90e2; }
        .bg-epic { background-color: #9013fe; }
        .bg-legendary { background-color: #f5a623; }
        
        .tag-common { background-color: #888; }
        .tag-uncommon { background-color: #579c66; }
        .tag-rare { background-color: #4a90e2; }
        .tag-epic { background-color: #9013fe; }
        .tag-legendary { background-color: #f5a623; }

        .rarity-common { color: var(--common, #aaa); }
        .rarity-uncommon { color: var(--uncommon, #579c66); }
        .rarity-rare { color: var(--rare, #4a90e2); }
        .rarity-epic { color: var(--epic, #9013fe); }

        .hover-trigger { cursor: pointer; transition: transform 0.2s; }
        .hover-trigger:hover { transform: scale(1.02); z-index: 10; background: rgba(255,255,255,0.05); }

        /* --- Module Selector --- */
        .module-selector-container {
            display: flex;
            justify-content: center;
            margin: 30px 0;
            position: relative;
        }

        .module-selector {
            display: flex;
            background: rgba(20, 20, 30, 0.8);
            border: 1px solid #333;
            border-radius: 50px;
            padding: 5px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            backdrop-filter: blur(5px);
        }

        .module-tab {
            padding: 10px 30px;
            border-radius: 40px;
            border: none;
            background: transparent;
            color: #8faab5;
            font-family: 'Heebo', sans-serif;
            font-weight: bold;
            font-size: 1rem;
            cursor: pointer;
            transition: 0.3s all ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .module-tab i { font-size: 1.1rem; }
        .module-tab:hover { color: white; }
        .module-tab.active { background: var(--neon-blue); color: #000; box-shadow: 0 0 15px var(--neon-blue); }
        .module-tab[data-target="arcs"].active { background: var(--neon-purple); box-shadow: 0 0 15px var(--neon-purple); color: white; }
        .module-tab[data-target="quests"].active { background: var(--epic, #ffaa00); box-shadow: 0 0 15px var(--epic, #ffaa00); color: black; }

        /* --- Table Styles --- */
        .table-header-row {
            display: flex;
            padding: 15px 20px;
            background: #08080a;
            border-bottom: 1px solid #333;
            color: #666;
            font-size: 0.8rem;
            text-transform: uppercase;
            font-weight: bold;
            letter-spacing: 1px;
            gap: 15px;
        }

        .data-row {
            display: flex;
            align-items: center;
            background: rgba(30, 30, 40, 0.5);
            border-bottom: 1px solid #1f1f26;
            padding: 15px 20px;
            transition: 0.2s;
            gap: 15px;
        }
        
        .col-icon { width: 80px; display: flex; justify-content: center; }
        .col-icon img { width: 60px; height: 60px; object-fit: contain; }
        .col-name { flex: 1.5; font-weight: bold; font-size: 1rem; color: white; }
        .col-desc { flex: 3; color: #888; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .col-rarity { flex: 0.8; font-size: 0.9rem; }
        .col-value { flex: 0.8; color: #fff; font-family: 'Rajdhani'; font-weight: 600; }
        .col-weight { flex: 0.6; color: #aaa; font-size: 0.9rem; }
        .col-type { flex: 1; color: #ccc; font-size: 0.9rem; }

        /* Arc & Quest Specifics */
        .arc-row { display: flex; flex-direction: column; background: rgba(30, 30, 40, 0.5); border-bottom: 1px solid #333; padding: 20px; margin-bottom: 10px; }
        @media(min-width: 800px) { .arc-row { flex-direction: row; align-items: center; } }
        .arc-info { flex: 1; display: flex; align-items: center; gap: 20px; }
        .arc-img-lg { width: 200px; height: 120px; object-fit: contain; }
        .arc-loot-grid { flex: 2; display: flex; flex-wrap: wrap; gap: 10px; }
        
        .loot-chip { display: flex; align-items: center; gap: 10px; background: #08080a; padding: 5px 10px; border-radius: 15px; border: 1px solid #2a2a35; }
        .loot-chip img { width: 40px; height: 40px; object-fit: contain; }

        .quest-row { background: rgba(30, 30, 40, 0.5); border-bottom: 1px solid #333; padding: 25px; display: flex; flex-direction: column; gap: 20px; }
        @media(min-width: 900px) { .quest-row { flex-direction: row; } }
        .quest-main { flex: 2; }
        .quest-rewards { flex: 1; background: #08080a; padding: 15px; border-radius: 6px; }
        
        .pagination-container { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
        .page-btn { background: #222; color: #fff; border: 1px solid #444; padding: 8px 16px; cursor: pointer; border-radius: 4px; }
        .page-btn.active { background: var(--neon-blue); color: black; border-color: var(--neon-blue); }
/* עיצוב שורת החיפוש */
        .search-container {
            display: flex;
            justify-content: center;
            margin-bottom: 25px;
        }
        
        .search-box {
            position: relative;
            width: 100%;
            max-width: 400px;
        }

        .search-input {
            width: 100%;
            padding: 12px 45px 12px 20px;
            background: rgba(20, 20, 30, 0.9);
            border: 1px solid #444;
            border-radius: 30px;
            color: white;
            font-family: 'Heebo', sans-serif;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            border-color: var(--neon-blue);
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
        }

        .search-icon {
            position: absolute;
            left: 15px; /* בגלל RTL האייקון יהיה בצד שמאל אם רוצים */
            top: 50%;
            transform: translateY(-50%);
            color: #666;
            pointer-events: none;
        }
        
        /* כיוון RTL - שים את האייקון בצד שמאל של הקלט */
        .search-input { padding-left: 40px; padding-right: 20px; }
        /* --- Modal Styles --- */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
            z-index: 10000;
            display: none; /* מוסתר בהתחלה */
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.show {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: linear-gradient(145deg, #1a1a24, #121218);
            border: 1px solid #333;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 0 50px rgba(0,0,0,0.8);
            animation: modalSlideUp 0.3s ease-out;
        }

        @keyframes modalSlideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .close-btn {
            position: absolute;
            top: 15px; left: 20px;
            font-size: 2rem;
            color: #666;
            cursor: pointer;
            transition: 0.2s;
            z-index: 10;
        }
        .close-btn:hover { color: white; }

        .modal-header {
            padding: 30px;
            background: rgba(255,255,255,0.03);
            border-bottom: 1px solid #2a2a35;
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .modal-img-wrapper {
            width: 100px;
            height: 100px;
            background: #08080a;
            border-radius: 12px;
            border: 1px solid #333;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .modal-img-wrapper img {
            max-width: 80%;
            max-height: 80%;
            filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
        }

        .modal-title-area { flex-grow: 1; }
        .modal-title-area h2 {
            margin: 0;
            font-family: 'Rajdhani', sans-serif;
            font-size: 2rem;
            color: white;
            text-transform: uppercase;
        }
        .modal-subtitle { color: var(--neon-blue); font-size: 0.9rem; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }

        .modal-rarity-badge {
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.8rem;
            text-transform: uppercase;
            border: 1px solid rgba(255,255,255,0.2);
        }

        .modal-body { padding: 30px; }
        
        .modal-description {
            color: #aaa;
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #2a2a35;
        }

        .modal-info-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 30px;
        }

        .info-box {
            background: rgba(255,255,255,0.03);
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .info-box i { color: var(--neon-blue); font-size: 1.2rem; margin-bottom: 5px; }
        .info-box span { font-size: 0.8rem; color: #666; }
        .info-box strong { color: white; font-size: 1.1rem; font-family: 'Rajdhani'; }

        .modal-divider {
            font-size: 0.8rem;
            text-transform: uppercase;
            color: #666;
            margin-bottom: 15px;
            letter-spacing: 1px;
            font-weight: bold;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 10px;
            margin-bottom: 30px;
        }

        .stat-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 15px;
            background: #0e0e12;
            border-radius: 6px;
            border: 1px solid #2a2a35;
        }
        .stat-label { color: #888; font-size: 0.9rem; }
        .stat-val { color: white; font-weight: bold; font-family: 'Rajdhani'; }

        .crafting-info {
            background: rgba(255, 170, 0, 0.1);
            border: 1px dashed var(--neon-orange);
            padding: 15px;
            border-radius: 8px;
            color: #ddd;
            font-size: 0.9rem;
        }