/* ============================================
   TISSUE SYNTHESIS MENU - MODERN UPGRADE
   ============================================ */

/* Main Container */
.synthesis.newdiz {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.98) 0%, rgba(15, 25, 35, 0.98) 100%);
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    overflow: hidden;
}

.synthesis.newdiz h1 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    margin: 0;
    padding: 20px 0;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

/* Tissue Types Container (Right Side Icons) */
.tissue-types-container {
    position: absolute;
    right: 20px;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

/* Staggered animation for tissue types */
.synthesis-tissue-type {
    animation: slideInRight 0.5s ease backwards;
}

.synthesis-tissue-type:nth-child(1) { animation-delay: 0.1s; }
.synthesis-tissue-type:nth-child(2) { animation-delay: 0.15s; }
.synthesis-tissue-type:nth-child(3) { animation-delay: 0.2s; }
.synthesis-tissue-type:nth-child(4) { animation-delay: 0.25s; }
.synthesis-tissue-type:nth-child(5) { animation-delay: 0.3s; }
.synthesis-tissue-type:nth-child(6) { animation-delay: 0.35s; }
.synthesis-tissue-type:nth-child(7) { animation-delay: 0.4s; }
.synthesis-tissue-type:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.synthesis.newdiz .synthesis-tissue-type {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.8) 0%, rgba(20, 30, 50, 0.8) 100%) !important;
    border: 2px solid rgba(100, 150, 200, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.synthesis.newdiz .synthesis-tissue-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.synthesis.newdiz .synthesis-tissue-type:hover {
    transform: scale(1.1) translateX(-5px) !important;
    border-color: rgba(0, 255, 136, 0.6) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3) !important;
}

.synthesis.newdiz .synthesis-tissue-type:hover::before {
    opacity: 1;
}

.synthesis.newdiz .synthesis-tissue-type.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 255, 0.2) 100%) !important;
    border-color: #00ff88 !important;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5) !important;
    transform: scale(1.15) translateX(-8px) !important;
}

.synthesis.newdiz .synthesis-tissue-type img {
    width: 35px !important;
    height: 35px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    transition: transform 0.3s ease !important;
}

.synthesis.newdiz .synthesis-tissue-type:hover img {
    transform: scale(1.1) !important;
}

.synthesis.newdiz .synthesis-tissue-type span {
    display: none;
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.synthesis.newdiz .synthesis-tissue-type:hover span {
    display: block !important;
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Main Holder */
.synthesis .holder {
    position: relative;
    min-height: 450px;
    padding: 60px 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Creature Container (Center) */
.tissue-container {
    width: 400px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
    border: 2px solid rgba(100, 150, 200, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tissue-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.tissue-item {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: tissueAppear 0.5s ease;
}

@keyframes tissueAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Highlight new tissue */
.tissue-item.new-tissue {
    animation: tissueHighlight 1s ease;
}

@keyframes tissueHighlight {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.8));
    }
}

/* Tissue Title */
.tissue-title {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: 600;
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    white-space: nowrap;
    margin: 0;
}

/* Tissue Color Indicator */
.tissue-color {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Buy Button */
.buy-btn {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.buy-btn span {
    font-size: 16px;
    font-weight: 700;
}

.buy-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #00ffaa 0%, #00dd7a 100%);
}

.buy-btn:active {
    transform: translateX(-50%) translateY(-1px);
}

.buy-btn img {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.buy-btn b {
    font-size: 18px;
    font-weight: 700;
}

.buy-btn.hidden {
    display: none;
}

/* Insufficient resources state */
.buy-btn.insufficient {
    background: linear-gradient(135deg, #ff6b6b 0%, #cc5555 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.buy-btn.insufficient:hover {
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Navigation Arrows */
.arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 255, 0.2) 100%);
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    color: #00ff88;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.arrows:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 200, 255, 0.3) 100%);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.arrows:active {
    transform: translateY(-50%) scale(0.95);
}

.arrows.left {
    left: -70px;
}

.arrows.right {
    right: -70px;
}

.arrows.hidden {
    display: none;
}

/* Side Panels (Bonuses & Requirements) */
.side {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.6) 0%, rgba(15, 25, 40, 0.6) 100%);
    border: 2px solid rgba(100, 150, 200, 0.2);
    border-radius: 15px;
    padding: 20px;
    min-width: 200px;
    max-width: 250px;
}

.side h3 {
    font-size: 18px;
    font-weight: 600;
    color: #00ff88;
    margin: 0 0 15px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.side li:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(5px);
}

.side li img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.side li span {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* Bonus Table */
.bonus-table {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.bonus-table h3 {
    color: #00ff88;
}

.bonus-table li {
    border-left: 3px solid #00ff88;
}

/* Require Table */
.require-table {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.require-table h3 {
    color: #ff6b6b;
}

.require-table li {
    border-left: 3px solid #ff6b6b;
}

.require-table li span {
    color: #ff6b6b;
}

/* Hidden State */
.hidden {
    display: none !important;
}

/* ============================================
   SKELETON MENU SPECIFIC STYLES - UPGRADED V2
   ============================================ */

/* New Layout: Fullscreen 3-column */
.synthesis.newdiz.skeleton-menu-layout .holder {
    display: grid;
    grid-template-columns: 350px 1fr 400px;
    grid-template-rows: 1fr auto;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 100px);
    width: 100%;
    overflow: hidden;
}

.synthesis.newdiz.skeleton-menu-layout .skeleton-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

.synthesis.newdiz.skeleton-menu-layout .skeleton-right {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Center column for materials */
.synthesis.newdiz.skeleton-menu-layout .skeleton-center {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 10px;
}

.synthesis.newdiz.skeleton-menu-layout .buy-btn {
    grid-column: 1 / 4;
    grid-row: 2;
    align-self: center;
    justify-self: center;
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 10px 0;
}

/* ============================================
   SKELETON MENU SPECIFIC STYLES - UPGRADED
   ============================================ */

/* Choose Bone Text - Enhanced */
.synthesis.newdiz .choose-bone {
    font-size: 16px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 0 40px rgba(0, 255, 136, 0.3);
    text-align: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 255, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(10px);
    animation: pulseGlow 2s ease-in-out infinite;
    transition: all 0.3s ease;
    display: block;
    flex-shrink: 0;
}

/* Bone Selected Animation */
.synthesis.newdiz .choose-bone.bone-selected {
    animation: boneClick 0.3s ease;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 200, 255, 0.3) 100%);
    border-color: #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

@keyframes boneClick {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    }
}

/* Bone Materials List - Modern Cards */
.synthesis.newdiz .bone-materials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.synthesis.newdiz .bone-materials.hidden {
    display: none !important;
}

/* Custom Scrollbar */
.synthesis.newdiz .bone-materials::-webkit-scrollbar {
    width: 6px;
}

.synthesis.newdiz .bone-materials::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.synthesis.newdiz .bone-materials::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 3px;
}

.synthesis.newdiz .bone-materials::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffaa 0%, #00dd7a 100%);
}

/* Material Bone Item - Card Style */
.synthesis.newdiz .material-bone-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.8) 0%, rgba(20, 30, 50, 0.8) 100%);
    border-radius: 10px;
    border: 2px solid rgba(100, 150, 200, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

/* Shine effect on hover */
.synthesis.newdiz .material-bone-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.synthesis.newdiz .material-bone-item:hover::before {
    left: 100%;
}

.synthesis.newdiz .material-bone-item:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 255, 0.2) 100%);
    border-color: #00ff88;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 20px rgba(0, 255, 136, 0.1);
}

/* Active/Selected state */
.synthesis.newdiz .material-bone-item.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 200, 255, 0.3) 100%);
    border-color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

.synthesis.newdiz .material-bone-item .bone-item-img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) !important;
    transition: transform 0.3s ease !important;
}

.synthesis.newdiz .material-bone-item:hover .bone-item-img {
    transform: scale(1.1) rotate(5deg) !important;
}

.synthesis.newdiz .material-bone-item span {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    flex: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Skeleton Canvas - Enhanced */
.synthesis.newdiz .skeleton-canvas-class {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.08) 0%, rgba(0, 100, 200, 0.05) 50%, transparent 70%) !important;
    border: 3px solid rgba(0, 255, 136, 0.3) !important;
    border-radius: 15px !important;
    cursor: crosshair !important;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2), inset 0 0 50px rgba(0, 255, 136, 0.05) !important;
    transition: all 0.3s ease !important;
}

/* Grid overlay effect */
.synthesis.newdiz .skeleton-canvas-class::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    border-radius: 15px;
}

.synthesis.newdiz .skeleton-canvas-class:hover {
    border-color: rgba(0, 255, 136, 0.6) !important;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4), inset 0 0 60px rgba(0, 255, 136, 0.1) !important;
    transform: scale(1.01) !important;
}

/* Bonus Table - Enhanced for Skeleton Menu */
.synthesis.newdiz .bonus-table {
    position: absolute;
    left: 20px;
    bottom: 80px;
    max-width: 250px;
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    z-index: 10;
}

.synthesis.newdiz .bonus-table h3 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    margin-bottom: 15px;
    text-align: center;
}

.synthesis.newdiz .bonus-table li {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 255, 0.1) 100%);
    border-left-width: 4px;
    padding: 12px;
    transition: all 0.3s ease;
}

.synthesis.newdiz .bonus-table li:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 255, 0.2) 100%);
    transform: translateX(8px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.synthesis.newdiz .bonus-table li img {
    width: 35px !important;
    height: 35px !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.synthesis.newdiz .bonus-table li span {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Require Table - Enhanced */
.synthesis.newdiz .require-table {
    background: linear-gradient(135deg, rgba(50, 30, 30, 0.95) 0%, rgba(40, 25, 25, 0.95) 100%);
    border: 2px solid rgba(255, 107, 107, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
}

.synthesis.newdiz .require-table h3 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.4);
    margin-bottom: 15px;
    text-align: center;
}

.synthesis.newdiz .require-table li {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 80, 80, 0.1) 100%);
    border-left-width: 4px;
    padding: 12px;
}

.synthesis.newdiz .require-table li img {
    width: 35px !important;
    height: 35px !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.synthesis.newdiz .require-table li span {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Remove absolute positioning for skeleton menu */
.synthesis.newdiz.skeleton-menu-layout .bonus-table,
.synthesis.newdiz.skeleton-menu-layout .require-table {
    position: static;
    transform: none;
    max-width: 100%;
}

/* Scrollbar for skeleton-right */
.synthesis.newdiz.skeleton-menu-layout .skeleton-right::-webkit-scrollbar {
    width: 8px;
}

.synthesis.newdiz.skeleton-menu-layout .skeleton-right::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.synthesis.newdiz.skeleton-menu-layout .skeleton-right::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 4px;
}

.synthesis.newdiz.skeleton-menu-layout .skeleton-right::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffaa 0%, #00dd7a 100%);
}

/* Material Info Badge */
.synthesis.newdiz .material-bone-item::after {
    content: '→';
    position: absolute;
    right: 12px;
    font-size: 20px;
    color: #00ff88;
    opacity: 0;
    transition: all 0.3s ease;
}

.synthesis.newdiz .material-bone-item:hover::after {
    opacity: 1;
    right: 8px;
}

/* Loading State */
.synthesis.loading .tissue-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 136, 0.2);
    border-top-color: #00ff88;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Empty State */
.synthesis .holder.empty .tissue-container::before {
    content: 'Нет доступных тканей';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    text-align: center;
}

/* ============================================
   SKELETON MENU - ADDITIONAL ENHANCEMENTS
   ============================================ */

/* Current Material Indicator */
.synthesis.newdiz .material-bone-item.current-material {
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.2) 0%, rgba(255, 150, 0, 0.2) 100%);
    border-color: #ffc107;
    position: relative;
}

.synthesis.newdiz .material-bone-item.current-material::after {
    content: '✓ Текущий';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.5);
    opacity: 1;
}

/* Locked Material */
.synthesis.newdiz .material-bone-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.7);
}

.synthesis.newdiz .material-bone-item.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(100, 150, 200, 0.3);
}

/* Price Badge on Material Card */
.synthesis.newdiz .material-bone-item .price-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #00ff88;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Skeleton Canvas - Click Hint */
.synthesis.newdiz .skeleton-canvas-class.clickable {
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        border-color: rgba(0, 255, 136, 0.3);
    }
    50% {
        border-color: rgba(0, 255, 136, 0.8);
    }
}

/* Material Stats Preview */
.synthesis.newdiz .material-bone-item .stats-preview {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 10px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff88;
    border-radius: 10px;
    padding: 12px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.synthesis.newdiz .material-bone-item:hover .stats-preview {
    display: block;
    animation: fadeInRight 0.3s ease;
}

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

/* Comparison Panel - New Design */
.synthesis.newdiz .comparison-panel {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    flex-shrink: 0;
}

.synthesis.newdiz .comparison-panel.hidden {
    display: none;
}

.synthesis.newdiz .comparison-panel h3 {
    font-size: 18px;
    font-weight: 700;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    text-align: center;
}

.synthesis.newdiz .comparison-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.synthesis.newdiz .comparison-panel .stat-change {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.synthesis.newdiz .comparison-panel .stat-change:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(5px);
}

.synthesis.newdiz .comparison-panel .stat-change img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.synthesis.newdiz .comparison-panel .stat-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.synthesis.newdiz .comparison-panel .stat-values {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.synthesis.newdiz .comparison-panel .stat-diff {
    font-size: 16px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
}

.synthesis.newdiz .comparison-panel .stat-change.positive .stat-diff {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.synthesis.newdiz .comparison-panel .stat-change.negative .stat-diff {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
}

.synthesis.newdiz .comparison-panel .stat-change.neutral .stat-diff {
    color: #9e9e9e;
    background: rgba(158, 158, 158, 0.2);
    border: 1px solid rgba(158, 158, 158, 0.4);
}

.synthesis.newdiz .comparison-indicator .stat-change .arrow {
    font-size: 18px;
    font-weight: 700;
}

/* Loading State */
.synthesis.newdiz.loading .skeleton-canvas-class::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 136, 0.2);
    border-top-color: #00ff88;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

/* Empty State for Materials */
.synthesis.newdiz .bone-materials.empty::before {
    content: 'Выберите кость на скелете';
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 20px;
}

/* Hover Tooltip for Canvas */
.synthesis.newdiz .canvas-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff88;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.5);
    display: none;
}

.synthesis.newdiz .canvas-tooltip.active {
    display: block;
    animation: tooltipFadeIn 0.2s ease;
}

/* Material Rarity Indicators */
.synthesis.newdiz .material-bone-item.rarity-common {
    border-left-color: #9e9e9e;
}

.synthesis.newdiz .material-bone-item.rarity-rare {
    border-left-color: #2196f3;
}

.synthesis.newdiz .material-bone-item.rarity-epic {
    border-left-color: #9c27b0;
}

.synthesis.newdiz .material-bone-item.rarity-legendary {
    border-left-color: #ff9800;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .synthesis .holder {
        padding: 60px 80px;
    }
    
    .bonus-table,
    .require-table {
        max-width: 180px;
    }
}

@media (max-width: 1200px) {
    .synthesis .holder {
        padding: 40px 20px;
        flex-direction: column;
        gap: 30px;
    }
    
    .tissue-types-container {
        flex-direction: row;
        position: static;
        justify-content: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .bonus-table,
    .require-table {
        position: static;
        transform: none;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .tissue-container {
        width: 100%;
        max-width: 400px;
    }
    
    .arrows.left {
        left: -60px;
    }
    
    .arrows.right {
        right: -60px;
    }
}

@media (max-width: 768px) {
    .synthesis.newdiz {
        padding: 20px;
    }
    
    .synthesis.newdiz h1 {
        font-size: 24px;
    }
    
    .tissue-container,
    .skeleton-canvas-class {
        width: 100%;
        height: 250px;
    }
    
    .arrows {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .arrows.left {
        left: 10px;
    }
    
    .arrows.right {
        right: 10px;
    }
    
    .buy-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .side {
        min-width: 100%;
    }
    
    /* Skeleton Menu Mobile */
    .synthesis.newdiz .bone-materials {
        max-width: 100%;
        max-height: 200px;
        position: static;
        transform: none;
        margin-bottom: 20px;
    }
    
    .synthesis.newdiz .choose-bone {
        font-size: 16px;
        padding: 8px 16px;
    }
    
    .synthesis.newdiz .comparison-indicator {
        position: static;
        transform: none;
        margin: 20px auto;
        max-width: 100%;
    }
}
