/* ===== Heart 3D Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #121828, #1a2238);
    border: 2px solid #3a4a6a;
    border-radius: 16px;
    padding: 24px;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 2rem;
    color: #8899bb;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ff6b6b;
}

.heart-3d-panel {
    flex: 1;
    min-width: 400px;
}

.heart-3d-panel h2 {
    color: #7eb8ff;
    text-align: center;
    margin-bottom: 12px;
}

.heart-info-panel {
    flex: 0 0 350px;
    background: #0d1220;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2a3a5a;
}

.heart-info-panel h2 {
    color: #ff9f6b;
    margin-bottom: 10px;
}

.heart-info-panel .info-content {
    line-height: 1.7;
    font-size: 0.9rem;
    color: #c0ccdd;
}

/* Conduction system parts */
.conduction-part {
    cursor: pointer;
    transition: all 0.3s;
}

.conduction-part:hover {
    filter: brightness(1.4) drop-shadow(0 0 8px rgba(255, 200, 100, 0.6));
}

.conduction-part.active {
    filter: brightness(1.5) drop-shadow(0 0 12px rgba(100, 200, 255, 0.8));
}
